Update jspp.js

This commit is contained in:
Sam Sneed 2024-05-31 22:19:05 +00:00 committed by GitHub
parent 3362ed61e8
commit 2851ce9b12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

13
jspp.js
View file

@ -334,16 +334,9 @@ class JSPlusPlus {
}
require(jsURI) {
try {
let gen = new JSPlusPlus.General
gen.readInternetText(jsURI);
gen.exec(req);
} catch {
console.log(`Error! (Using Node.JS/Bun?)
If on NodeJS or equivalent try:
'let ${jsURI} = require("${jsURI}")'`)
}
let gen = new JSPlusPlus.General
gen.readInternetText(jsURI);
gen.exec(req);
}