Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
privt00 committed Jun 18, 2024
1 parent 4aacf65 commit 1a93c77
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ const defaultthemesettings = {
variables: {}
};

module.exports.renderdataeval =
`(async () => {
let products = JSON.parse(require("fs").readFileSync("./prod.json"));
let newsettings = JSON.parse(require("fs").readFileSync("./settings.json"));
module.exports.renderdataeval = async function(req) {
let products = JSON.parse(require("fs").readFileSync("./prod.json"));
let newsettings = JSON.parse(require("fs").readFileSync("./settings.json"));
const JavaScriptObfuscator = require('javascript-obfuscator');
const newlang = JSON.parse(require("fs").readFileSync('./languages/' + settings.language + '/lang.json'));
let theme = indexjs.get(req);

let renderdata = {
return {
products: products,
req: req,
eggs: eggconfig,
Expand All @@ -84,10 +84,8 @@ let newsettings = JSON.parse(require("fs").readFileSync("./settings.json"));
extra: theme.settings.variables,
referid: req.session.userinfo ? await db.get("referiduser-" + req.session.userinfo.id) : null,
db: db,
};
return renderdata;
})();`;
};
};

console.log(chalk.white("+ | ✅ "));

Expand Down

0 comments on commit 1a93c77

Please sign in to comment.