Przeglądaj źródła

renamed script-loader.js to runner.js

Gildas 7 lat temu
rodzic
commit
af9ece7021
3 zmienionych plików z 5 dodań i 5 usunięć
  1. 1 1
      extension/core/bg/core.js
  2. 3 3
      extension/core/bg/script-loader.js
  3. 1 1
      manifest.json

+ 1 - 1
extension/core/bg/core.js

@@ -29,7 +29,7 @@ singlefile.core = (() => {
 	async function saveTab(tab, processOptions) {
 		const options = await singlefile.config.getDefaultConfig();
 		Object.keys(processOptions).forEach(key => options[key] = processOptions[key]);
-		return singlefile.scriptLoader.executeScripts(tab, options);
+		return singlefile.runner.saveTab(tab, options);
 	}
 
 	async function autoSaveTab(tab) {

+ 3 - 3
extension/core/bg/script-loader.js

@@ -20,7 +20,7 @@
 
 /* global browser, singlefile */
 
-singlefile.scriptLoader = (() => {
+singlefile.runner = (() => {
 
 	const contentScriptFiles = [
 		"/lib/hooks/hooks.js",
@@ -76,9 +76,9 @@ singlefile.scriptLoader = (() => {
 		]
 	};
 
-	return { executeScripts };
+	return { saveTab };
 
-	async function executeScripts(tab, options) {
+	async function saveTab(tab, options) {
 		if (!options.removeFrames) {
 			await executeContentScripts(tab.id, frameScriptFiles, true, "document_start");
 		}

+ 1 - 1
manifest.json

@@ -56,7 +56,7 @@
 			"extension/index.js",
 			"extension/core/bg/tabs-data.js",
 			"extension/core/bg/download.js",
-			"extension/core/bg/script-loader.js",
+			"extension/core/bg/runner.js",
 			"extension/core/bg/processor.js",
 			"extension/core/bg/autosave.js",
 			"extension/core/bg/config.js",