Fix script for Firefox
This commit is contained in:
parent
30ff0201d8
commit
483f001d85
|
@ -143,7 +143,8 @@
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
[].forEach.call($$('script'), function(script) {
|
[].forEach.call($$('script'), function(script) {
|
||||||
if (script.type === 'text/applesoft-basic') {
|
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);
|
script.parentElement.insertBefore(elem, script.nextSibling);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue