mirror of
https://github.com/inexorabletash/jsbasic.git
synced 2025-06-13 03:38:01 +00:00
Fix script for Firefox
This commit is contained in:
@ -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