Skip to content

Commit

Permalink
Merge pull request #1676 from raszpl/raszpl-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored May 14, 2023
2 parents c59e4dd + 390275b commit 9f19c83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions js&css/satus.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
height: 100vh;
justify-content: center;
align-items: center;
cursor: default;
}


Expand Down
6 changes: 2 additions & 4 deletions js&css/satus.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ satus.events.trigger = function(type, data) {

if (handlers) {
for (var i = 0, l = handlers.length; i < l; i++) {
try {handlers[i](data);}
catch(err){console.log(err);}
handlers[i](data);
}
}
};
Expand Down Expand Up @@ -1001,8 +1000,7 @@ satus.storage.set = function(key, value, callback) {
}

chrome.storage.local.set(items, function() {
try {satus.events.trigger('storage-set');}
catch(err){console.log(err);}
satus.events.trigger('storage-set');

if (callback) {
callback();
Expand Down
5 changes: 2 additions & 3 deletions menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ satus.storage.import(function (items) {
]);

extension.attributes();
satus.events.on('storage-set', extension.attributes);
}, '_locales/');

satus.events.on('storage-set', extension.attributes);
});

chrome.runtime.sendMessage({
Expand All @@ -55,4 +54,4 @@ chrome.runtime.sendMessage({
if (response.isTab) {
document.body.setAttribute('tab', '');
}
});
});

0 comments on commit 9f19c83

Please sign in to comment.