Преглед изворни кода

removed options parameter

Former-commit-id: 3c7a6c062311a2691def3b321c36890a3c5e943d
Gildas пре 6 година
родитељ
комит
d4c2337d71
1 измењених фајлова са 7 додато и 10 уклоњено
  1. 7 10
      extension/ui/content/content-ui-main.js

+ 7 - 10
extension/ui/content/content-ui-main.js

@@ -72,17 +72,14 @@ this.singlefile.extension.ui.content.main = this.singlefile.extension.ui.content
 				}
 			}
 		},
-		onEndPage(options) {
-			if (options.shadowEnabled) {
-				const maskElement = document.querySelector(MASK_TAGNAME);
-				if (maskElement) {
-					maskElement.remove();
-				}
-			}
-			if (options.logsEnabled) {
-				logsWindowElement.remove();
-				clearLogs();
+		onEndPage() {
+			const maskElement = document.querySelector(MASK_TAGNAME);
+			if (maskElement) {
+				maskElement.remove();
 			}
+
+			logsWindowElement.remove();
+			clearLogs();
 		},
 		onLoadResource(index, maxIndex, options) {
 			if (options.shadowEnabled && options.progressBarEnabled) {