We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 687475e commit ff57f01Copy full SHA for ff57f01
platform/mv3/extension/js/background.js
@@ -388,15 +388,14 @@ async function start() {
388
389
// https://github.com/uBlockOrigin/uBOL-home/issues/199
390
// Force a restart of the extension once when an "internal error" occurs
391
-try {
392
- start();
+start().then(( ) => {
393
localWrite({ goodStart: true });
394
-} catch(reason) {
+}).catch(reason => {
395
console.trace(reason);
396
- localRead.get('goodStart').then((bin = {}) => {
397
- if ( bin.goodStart !== true ) { return; }
+ localRead('goodStart').then((bin = {}) => {
+ if ( bin.goodStart === false ) { return; }
398
localWrite({ goodStart: false }).then(( ) => {
399
runtime.reload();
400
});
401
402
-}
+});
0 commit comments