Fix: various
This commit is contained in:
parent
d4436cde20
commit
f3a103645d
|
@ -67,7 +67,6 @@
|
||||||
<script src="js/localization.js"></script>
|
<script src="js/localization.js"></script>
|
||||||
<script src="js/script-loader.js"></script>
|
<script src="js/script-loader.js"></script>
|
||||||
<script src="js/storage-util.js"></script>
|
<script src="js/storage-util.js"></script>
|
||||||
<script src="js/exclusions.js"></script>
|
|
||||||
<script src="js/msg.js"></script>
|
<script src="js/msg.js"></script>
|
||||||
|
|
||||||
<script src="content/apply.js"></script>
|
<script src="content/apply.js"></script>
|
||||||
|
@ -88,11 +87,14 @@
|
||||||
<script src="edit/applies-to-line-widget.js"></script>
|
<script src="edit/applies-to-line-widget.js"></script>
|
||||||
<script src="edit/reroute-hotkeys.js"></script>
|
<script src="edit/reroute-hotkeys.js"></script>
|
||||||
<script src="edit/codemirror-factory.js"></script>
|
<script src="edit/codemirror-factory.js"></script>
|
||||||
<script src="edit/source-editor.js"></script>
|
<script src="edit/exclusions.js"></script>
|
||||||
<script src="edit/colorpicker-helper.js"></script>
|
<script src="edit/colorpicker-helper.js"></script>
|
||||||
<script src="edit/beautify.js"></script>
|
<script src="edit/beautify.js"></script>
|
||||||
<script src="edit/sections-editor.js"></script>
|
|
||||||
<script src="edit/show-keymap-help.js"></script>
|
<script src="edit/show-keymap-help.js"></script>
|
||||||
|
|
||||||
|
<script src="edit/source-editor.js"></script>
|
||||||
|
<script src="edit/sections-editor.js"></script>
|
||||||
|
|
||||||
<script src="edit/edit.js"></script>
|
<script src="edit/edit.js"></script>
|
||||||
|
|
||||||
<script src="msgbox/msgbox.js" async></script>
|
<script src="msgbox/msgbox.js" async></script>
|
||||||
|
|
|
@ -214,6 +214,7 @@ preinit();
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
initStyleData(),
|
initStyleData(),
|
||||||
onDOMready(),
|
onDOMready(),
|
||||||
|
prefs.initializing,
|
||||||
])
|
])
|
||||||
.then(([style]) => {
|
.then(([style]) => {
|
||||||
const usercss = isUsercss(style);
|
const usercss = isUsercss(style);
|
||||||
|
@ -226,7 +227,6 @@ preinit();
|
||||||
$('#beautify').onclick = () => beautify(editor.getEditors());
|
$('#beautify').onclick = () => beautify(editor.getEditors());
|
||||||
$('#lint').addEventListener('scroll', hideLintHeaderOnScroll, {passive: true});
|
$('#lint').addEventListener('scroll', hideLintHeaderOnScroll, {passive: true});
|
||||||
window.addEventListener('resize', () => debounce(rememberWindowSize, 100));
|
window.addEventListener('resize', () => debounce(rememberWindowSize, 100));
|
||||||
|
|
||||||
editor = usercss ? createSourceEditor(style) : createSectionsEditor(style);
|
editor = usercss ? createSourceEditor(style) : createSectionsEditor(style);
|
||||||
if (editor.ready) {
|
if (editor.ready) {
|
||||||
return editor.ready();
|
return editor.ready();
|
||||||
|
@ -408,6 +408,7 @@ function initStyleData() {
|
||||||
// strip URL parameters when invoked for a non-existent id
|
// strip URL parameters when invoked for a non-existent id
|
||||||
if (!style.id) {
|
if (!style.id) {
|
||||||
history.replaceState({}, document.title, location.pathname);
|
history.replaceState({}, document.title, location.pathname);
|
||||||
|
// FIXME: add style -> edit style
|
||||||
}
|
}
|
||||||
return style;
|
return style;
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
"js/msg.js",
|
"js/msg.js",
|
||||||
"js/storage-util.js",
|
"js/storage-util.js",
|
||||||
"js/sections-equal.js",
|
"js/sections-equal.js",
|
||||||
"background/storage-dummy.js",
|
|
||||||
"background/storage.js",
|
"background/storage.js",
|
||||||
"js/prefs.js",
|
"js/prefs.js",
|
||||||
"js/script-loader.js",
|
"js/script-loader.js",
|
||||||
|
|
|
@ -166,7 +166,6 @@
|
||||||
<script src="popup/hotkeys.js"></script>
|
<script src="popup/hotkeys.js"></script>
|
||||||
<script src="js/script-loader.js" async></script>
|
<script src="js/script-loader.js" async></script>
|
||||||
<script src="js/storage-util.js" async></script>
|
<script src="js/storage-util.js" async></script>
|
||||||
<script src="js/exclusions.js" async></script>
|
|
||||||
<script src="popup/popup-exclusions.js"></script>
|
<script src="popup/popup-exclusions.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user