summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 18:07:37 -0400
committerspv420 <spv@spv.sh>2022-07-31 18:07:37 -0400
commit7f884f85821cc08df2aa8ae11ebd37fa258f2f47 (patch)
tree122242dda97b593a436cc20cdb0ce6296578a91e /src
parentadc93da5f2940ba1429e392ee9b1804b541e14f6 (diff)
GET FUCKED
Diffstat (limited to 'src')
-rw-r--r--src/js/main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/main.js b/src/js/main.js
index 5094a08..98e55b2 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -100,7 +100,9 @@ function parse_nvram_options() {
}
if (boot_args_js_str.includes("p0laris_options")) {
- p0laris.options = JSON.parse(boot_args_js_str.substr(boot_args_js_str.indexOf("p0laris_options") + "p0laris_options".length, boot_args_js_str.length - 1));
+ var p0laris_options_index = boot_args_js_str.indexOf("p0laris_options") + "p0laris_options".length + 2;
+ var p0laris_options_js_str = boot_args_js_str.substr(p0laris_options_index, boot_args_js_str.length - 2 - p0laris_options_index);
+ p0laris.options = JSON.parse(p0laris_options_js_str);
}
}
}