1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

extension restart is platform-dependent

This commit is contained in:
Raymond Hill 2014-12-02 14:02:17 -02:00
parent 1a2eef4fa7
commit 0e12797709
4 changed files with 13 additions and 10 deletions

View File

@ -48,6 +48,12 @@ vAPI.app = {
/******************************************************************************/
vAPI.app.restart = function() {
chrome.runtime.reload();
};
/******************************************************************************/
vAPI.storage = chrome.storage.local;
/******************************************************************************/

View File

@ -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

View File

@ -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();
};
/******************************************************************************/

View File

@ -54,14 +54,6 @@ exports.keyvalRemoveAll = function(callback) {
/******************************************************************************/
exports.restart = function() {
if (vAPI.chrome) {
chrome.runtime.reload();
}
};
/******************************************************************************/
return exports;
/******************************************************************************/