drop stylus- from hash

...because this is about styles, not Stylus, unlike stylus-options
This commit is contained in:
tophf 2022-01-13 13:21:49 +03:00
parent a96bd326e3
commit b9f4109a41
2 changed files with 5 additions and 5 deletions

View File

@ -983,12 +983,12 @@ a:hover {
.injection-order-dialog > div {
height: 100%;
}
#stylus-injection-order {
#injection-order {
display: block;
border: 0;
height: 100%;
}
#stylus-injection-order.fadeout {
#injection-order.fadeout {
animation: slideout .25s ease-in-out;
}

View File

@ -62,7 +62,7 @@ newUI.renderClass();
installed.on('mouseover', Events.lazyAddEntryTitle, {passive: true});
installed.on('mouseout', Events.lazyAddEntryTitle, {passive: true});
$('#manage-options-button').onclick = () => router.updateHash('#stylus-options');
$('#injection-order-button').onclick = () => router.updateHash('#stylus-injection-order');
$('#injection-order-button').onclick = () => router.updateHash('#injection-order');
$('#sync-styles').onclick = () => router.updateHash('#stylus-options');
$$('#header a[href^="http"]').forEach(a => (a.onclick = Events.external));
document.on('visibilitychange', handleVisibilityChange);
@ -110,9 +110,9 @@ router.watch(
}))
);
router.watch(
{hash: '#stylus-injection-order'},
{hash: '#injection-order'},
EmbedDialog(() => $create('iframe', {
id: 'stylus-injection-order',
id: 'injection-order',
src: '/injection-order/injection-order.html',
}))
);