mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2026-12-01 03:25:29 +00:00
Fix script for Firefox
This commit is contained in:
1 parent
30ff0201d8
commit
483f001d85
1 file changed
+2
-1
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user