diff options
| author | spv420 <spv@spv.sh> | 2022-07-31 18:07:37 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-31 18:07:37 -0400 |
| commit | 7f884f85821cc08df2aa8ae11ebd37fa258f2f47 (patch) | |
| tree | 122242dda97b593a436cc20cdb0ce6296578a91e /src | |
| parent | adc93da5f2940ba1429e392ee9b1804b541e14f6 (diff) | |
GET FUCKED
Diffstat (limited to 'src')
| -rw-r--r-- | src/js/main.js | 4 |
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); } } } |
