mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
Minor cleanups
This commit is contained in:
parent
e8536f3104
commit
ec1c5ae7d8
@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
// hide page action when a tab is refreshed
|
// hide page action when a tab is refreshed
|
||||||
browser.tabs.onUpdated.addListener(function(tabId, data){
|
browser.tabs.onUpdated.addListener(function(tabId, data){
|
||||||
if (data.status === "loading"){
|
if (data.status && data.status === "loading"){
|
||||||
browser.pageAction.hide(tabId);
|
browser.pageAction.hide(tabId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -74,7 +74,8 @@
|
|||||||
name,
|
name,
|
||||||
{
|
{
|
||||||
get: settingDefinition.get,
|
get: settingDefinition.get,
|
||||||
set: settingDefinition.set
|
set: settingDefinition.set,
|
||||||
|
enumerable: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
/* eslint no-console: off */
|
||||||
(function(){
|
(function(){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user