1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

Insert the chrome stylesheet before the last element in the document, rather than the first.

This commit is contained in:
Kris Maglione
2008-10-06 00:51:16 +00:00
parent 0a8252fb2a
commit 18c67c92ed

View File

@@ -212,7 +212,7 @@ liberator.Buffer = function () //{{{
let styles = liberator.storage.newObject("styles", Styles, false);
let stylesheet = document.createProcessingInstruction("xml-stylesheet", "");
document.insertBefore(stylesheet, document.firstChild);
document.insertBefore(stylesheet, document.childNodes[document.childNodes.length - 1]);
let chromeObserver = function () { stylesheet.data = 'type="text/css" href="' + styles.chromeCSS + '"' };
storage.addObserver("styles", chromeObserver);