ソースを参照

fixed initialization issue

Gildas 7 年 前
コミット
53af3fb429
1 ファイル変更1 行追加1 行削除
  1. 1 1
      extension/ui/content/content-ui.js

+ 1 - 1
extension/ui/content/content-ui.js

@@ -117,7 +117,7 @@ this.singlefile.ui = this.singlefile.ui || (() => {
 	function markSelectedContent() {
 		const selection = getSelection();
 		for (let indexRange = 0; indexRange < selection.rangeCount; indexRange++) {
-			let selectionFound = true;;
+			let selectionFound = false;
 			let range = selection.getRangeAt(indexRange);
 			if (range && range.commonAncestorContainer) {
 				const treeWalker = document.createTreeWalker(range.commonAncestorContainer);