initialize router earlier, fixes ea5a7832
This commit is contained in:
parent
df2e8221d2
commit
f5fc6a91a3
|
@ -19,6 +19,8 @@ define(require => {
|
|||
|
||||
return {
|
||||
|
||||
update,
|
||||
|
||||
getSearch(key) {
|
||||
return new URLSearchParams(location.search).get(key);
|
||||
},
|
||||
|
|
|
@ -34,7 +34,6 @@ define(async require => {
|
|||
} = require('./events');
|
||||
|
||||
msg.onExtension(onRuntimeMessage);
|
||||
router.watch({hash: '#stylus-options'}, toggleEmbeddedOptions);
|
||||
window.on('closeOptions', () => router.updateHash(''));
|
||||
|
||||
const query = router.getSearch('search');
|
||||
|
@ -66,6 +65,9 @@ define(async require => {
|
|||
].map(id => `--${id}:"${CSS.escape(t(id))}";`).join('')
|
||||
}}`);
|
||||
|
||||
router.watch({hash: '#stylus-options'}, toggleEmbeddedOptions);
|
||||
router.update();
|
||||
|
||||
if (!VIVALDI) {
|
||||
fitSelectBoxInOpenDetails($('#filters'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user