From 7f884f85821cc08df2aa8ae11ebd37fa258f2f47 Mon Sep 17 00:00:00 2001 From: spv420 Date: Sun, 31 Jul 2022 18:07:37 -0400 Subject: GET FUCKED --- src/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/js/main.js') 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); } } } -- cgit v1.2.3