Browse Source

Place stylesheet selector as the last element, not the second last.

pull/40/head
Savetheinternet 13 years ago
parent
commit
4c145b28bc
  1. 3
      main.js
  2. 2
      templates/main.js

3
main.js

@ -177,7 +177,7 @@ function init()
newElement.appendChild(style);
}
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild.nextSibling)
if(document.forms.postcontrols) {
document.forms.postcontrols.password.value = localStorage.password;
@ -194,4 +194,3 @@ var RecaptchaOptions = {
};
window.onload = init;

2
templates/main.js

@ -177,7 +177,7 @@ function init()
newElement.appendChild(style);
}
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild)
document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild.nextSibling)
if(document.forms.postcontrols) {
document.forms.postcontrols.password.value = localStorage.password;

Loading…
Cancel
Save