Fix browser action flow bug.

This commit is contained in:
Kenshin 2017-12-29 09:59:23 +08:00
parent 0e5540932f
commit 2e1370dce6

View File

@ -51,7 +51,10 @@ browser.runtime.onMessage.addListener( function( request, sender, sendResponse )
console.log( "watch.Lock()", result );
new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() );
} else {
if ( storage.option.br_exit ) read.Exist( false ) ? read.Exit() : readMode();
if ( storage.option.br_exit ) {
modals.Exist() && modals.Exit();
!modals.Exist() && read.Exist( false ) ? read.Exit() : readMode();
}
else readMode();
}
});