Fix script for Firefox

This commit is contained in:
Joshua Bell 2014-01-25 22:25:01 -08:00
parent 30ff0201d8
commit 483f001d85
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@
window.addEventListener('load', function() {
[].forEach.call($$('script'), function(script) {
if (script.type === 'text/applesoft-basic') {
var elem = createInstance(script.innerText);
var source = script.innerText || script.textContent;
var elem = createInstance(source);
script.parentElement.insertBefore(elem, script.nextSibling);
}
});