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

This commit is contained in:
Savetheinternet 2011-11-16 16:33:50 +11:00
parent 67ab17e716
commit 4c145b28bc
2 changed files with 197 additions and 198 deletions

View File

@ -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;

View File

@ -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;