소스 검색

remove legacy infobar

Gildas 2 년 전
부모
커밋
0858f9c7b0
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/core/content/content-bootstrap.js

+ 3 - 3
src/core/content/content-bootstrap.js

@@ -219,9 +219,9 @@ function savePage(docData, frames, { autoSaveUnload, autoSaveDiscard, autoSaveRe
 }
 
 async function openEditor(document) {
-	const infobarElement = document.querySelector("singlefile-infobar");
-	if (infobarElement) {
-		infobarElement.remove();
+	const legacyInfobarElement = document.querySelector("singlefile-infobar");
+	if (legacyInfobarElement) {
+		legacyInfobarElement.remove();
 	}
 	serializeShadowRoots(document);
 	const content = singlefile.helper.serialize(document);