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

This commit is contained in:
Savetheinternet committed 2011-11-16 16:33:50 +11:00
1 parent 67ab17e716
commit 4c145b28bc
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -177,7 +177,7 @@ function init()
newElement.appendChild(style); 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) { if(document.forms.postcontrols) {
document.forms.postcontrols.password.value = localStorage.password; document.forms.postcontrols.password.value = localStorage.password;
@@ -194,4 +194,3 @@ var RecaptchaOptions = {
}; };
window.onload = init; window.onload = init;
+1 -1
View File
@@ -177,7 +177,7 @@ function init()
newElement.appendChild(style); 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) { if(document.forms.postcontrols) {
document.forms.postcontrols.password.value = localStorage.password; document.forms.postcontrols.password.value = localStorage.password;