Procházet zdrojové kódy

append bar to the document element

Gildas před 2 roky
rodič
revize
fe574cb30d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/ui/common/common-content-ui.js

+ 1 - 1
src/ui/common/common-content-ui.js

@@ -220,7 +220,7 @@ function displayBar(tagName, message, { link, buttonLabel, buttonOnclick } = {})
 					barElement.remove();
 				}
 			};
-			document.body.appendChild(barElement);
+			document.documentElement.appendChild(barElement);
 		}
 	} catch (error) {
 		// iignored