mirror of
https://github.com/EndPwnArchive/endpwn3.2-lambda.git
synced 2024-08-14 23:49:56 +00:00
fuck eval
This commit is contained in:
parent
cc3e5ea311
commit
9d937fe0b5
2 changed files with 5 additions and 2 deletions
|
@ -150,10 +150,13 @@ function evaluate(str, exportsR) {
|
|||
}
|
||||
|
||||
// krequire is a reimplementation of require(), only intended for loading plugins
|
||||
window.krequire = function (p) {
|
||||
/*window.krequire = function (p) {
|
||||
var exports = {};
|
||||
evaluate(fs.readFileSync($api.data + '/plugins/' + p + (p.endsWith('.js') ? '' : '.js'), 'utf8').toString(), exports);
|
||||
return exports;
|
||||
}*/
|
||||
window.krequire = function(p){
|
||||
return require($api.data + '/plugins/' + p + (p.endsWith('.js') ? '' : '.js')); //200 IQ :bigthink:
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue