summaryrefslogtreecommitdiff
path: root/src/js/main.js
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 20:46:39 -0400
committerspv420 <spv@spv.sh>2022-07-31 20:46:39 -0400
commit30cbeaa4c3c2e07fbabbb231591f95b6a1724e64 (patch)
tree41cbe61781129b7554b2355d362cd2889a578eda /src/js/main.js
parentc9bc2881919bfb193bb9b59320fd77734f624566 (diff)
lol
Diffstat (limited to 'src/js/main.js')
-rw-r--r--src/js/main.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/js/main.js b/src/js/main.js
index 98e55b2..1a1f197 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -163,7 +163,13 @@ function main() {
printf("[*] entering stage4...\n");
eval(stage4_js_str);
- exit(main());
+ var p0laris_stage4_func = main;
+
+ if (p0laris.options.default_main != undefned) {
+ p0laris_stage4_func = eval(p0laris.options.default_main);
+ }
+
+ exit(p0laris_stage4_func());
return;
};