Parcourir la source

remove legacy infobar

Gildas il y a 2 ans
Parent
commit
0858f9c7b0
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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);