Update jspp.js
This commit is contained in:
parent
3362ed61e8
commit
2851ce9b12
1 changed files with 3 additions and 10 deletions
7
jspp.js
7
jspp.js
|
@ -334,16 +334,9 @@ class JSPlusPlus {
|
||||||
}
|
}
|
||||||
|
|
||||||
require(jsURI) {
|
require(jsURI) {
|
||||||
try {
|
|
||||||
let gen = new JSPlusPlus.General
|
let gen = new JSPlusPlus.General
|
||||||
gen.readInternetText(jsURI);
|
gen.readInternetText(jsURI);
|
||||||
gen.exec(req);
|
gen.exec(req);
|
||||||
} catch {
|
|
||||||
console.log(`Error! (Using Node.JS/Bun?)
|
|
||||||
|
|
||||||
If on NodeJS or equivalent try:
|
|
||||||
'let ${jsURI} = require("${jsURI}")'`)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue