Prechádzať zdrojové kódy

make sure the ui is initialized after the DOM is serialized

Gildas 7 rokov pred
rodič
commit
774446e1c2
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      extension/core/scripts/content/client.js

+ 1 - 1
extension/core/scripts/content/client.js

@@ -27,7 +27,6 @@
 	chrome.runtime.onMessage.addListener(request => {
 	chrome.runtime.onMessage.addListener(request => {
 		if (request.processStart) {
 		if (request.processStart) {
 			fixInlineScripts();
 			fixInlineScripts();
-			singlefile.ui.init();
 			SingleFile.process(getOptions(request.options))
 			SingleFile.process(getOptions(request.options))
 				.then(page => {
 				.then(page => {
 					const date = new Date();
 					const date = new Date();
@@ -40,6 +39,7 @@
 					console.error(error); // eslint-disable-line no-console
 					console.error(error); // eslint-disable-line no-console
 					chrome.runtime.sendMessage({ processError: true });
 					chrome.runtime.sendMessage({ processError: true });
 				});
 				});
+			singlefile.ui.init();
 		}
 		}
 	});
 	});