go to style manager after installing style

This commit is contained in:
tophf 2021-08-22 20:40:16 +03:00
parent 2eeab2c1be
commit 0a934b0657

View File

@ -1,6 +1,6 @@
/* global $ $create $createLink $$remove showSpinner */// dom.js
/* global API */// msg.js
/* global closeCurrentTab deepEqual */// toolbox.js
/* global deepEqual */// toolbox.js
/* global messageBox */
/* global prefs */
/* global preinit */
@ -301,17 +301,9 @@ function install(style) {
updateMeta(style);
if (!liveReload.enabled && !prefs.get('openEditInWindow')) {
location.href = '/edit.html?id=' + style.id;
} else {
API.openEditor({id: style.id});
if (!liveReload.enabled) {
if (tabId < 0 && history.length > 1) {
history.back();
} else {
closeCurrentTab();
}
}
sessionStorage.justEditedStyleId = style.id;
location.href = '/manage.html';
}
}