Skip to content

Commit

Permalink
MISC: Accept "noscript" as parameter for skipping loading scripts (bi…
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg authored Nov 24, 2024
1 parent 05da0ef commit 294c9cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/NetscriptWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,11 @@ function createAutoexec(server: BaseServer): RunningScript | null {
* into worker scripts so that they will start running
*/
export function loadAllRunningScripts(): void {
const skipScriptLoad = window.location.href.toLowerCase().includes("?noscripts");
/**
* Accept all parameters containing "?noscript". The "standard" parameter is "?noScripts", but new players may not
* notice the "s" character at the end of "noScripts".
*/
const skipScriptLoad = window.location.href.toLowerCase().includes("?noscript");
if (skipScriptLoad) {
Terminal.warn("Skipped loading player scripts during startup");
console.info("Skipping the load of any scripts during startup");
Expand Down

0 comments on commit 294c9cb

Please sign in to comment.