Просмотр исходного кода

renamed singlefile.ui.* methods in content scripts

Gildas 7 лет назад
Родитель
Сommit
05d9763176
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      extension/core/scripts/content/client.js
  2. 2 2
      extension/ui/scripts/content/ui.js

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

@@ -48,13 +48,13 @@
 					chrome.runtime.sendMessage({ processEnd: true });
 				}
 			};
-			singlefile.ui.processStart();
+			singlefile.ui.start();
 			SingleFile.process(options)
 				.then(page => {
 					page.url = URL.createObjectURL(new Blob([page.content], { type: "text/html" }));
 					page.filename = page.title + ".html";
 					downloadPage(page);
-					singlefile.ui.processEnd();
+					singlefile.ui.end();
 				})
 				.catch(error => {
 					console.error(error);

+ 2 - 2
extension/ui/scripts/content/ui.js

@@ -25,7 +25,7 @@ singlefile.ui = (() => {
 	const MASK_ID = "__SingleFile_mask__";
 
 	return {
-		processStart() {
+		start() {
 			let maskElement = document.getElementById(MASK_ID);
 			if (!maskElement) {
 				maskElement = document.createElement("singlefile-mask");
@@ -45,7 +45,7 @@ singlefile.ui = (() => {
 				maskElement.style.opacity = .3;
 			}
 		},
-		processEnd() {
+		end() {
 			const maskElement = document.getElementById(MASK_ID);
 			if (maskElement) {
 				maskElement.remove();