mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2024-12-22 07:30:19 +00:00
Fix script for Firefox
This commit is contained in:
parent
30ff0201d8
commit
483f001d85
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user