Update jspp.js
This commit is contained in:
parent
3362ed61e8
commit
2851ce9b12
1 changed files with 3 additions and 10 deletions
13
jspp.js
13
jspp.js
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue