mirror of https://github.com/gorhill/uBlock.git
extension restart is platform-dependent
This commit is contained in:
parent
1a2eef4fa7
commit
0e12797709
|
@ -48,6 +48,12 @@ vAPI.app = {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.app.restart = function() {
|
||||
chrome.runtime.reload();
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.storage = chrome.storage.local;
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -43,6 +43,11 @@ vAPI.app = {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.app.restart = function() {
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
// addContentScriptFromURL allows whitelisting,
|
||||
// so load sitepaching this way, instead of adding it to the Info.plist
|
||||
|
||||
|
|
|
@ -752,7 +752,7 @@ var restoreUserData = function(userData) {
|
|||
var onCountdown = function() {
|
||||
countdown -= 1;
|
||||
if ( countdown === 0 ) {
|
||||
µb.XAL.restart();
|
||||
vAPI.app.restart();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -776,7 +776,7 @@ var resetUserData = function() {
|
|||
µb.XAL.keyvalRemoveAll();
|
||||
// Keep global counts, people can become quite attached to numbers
|
||||
µBlock.saveLocalSettings();
|
||||
µb.XAL.restart();
|
||||
vAPI.app.restart();
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -54,14 +54,6 @@ exports.keyvalRemoveAll = function(callback) {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
exports.restart = function() {
|
||||
if (vAPI.chrome) {
|
||||
chrome.runtime.reload();
|
||||
}
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
return exports;
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue