diff --git a/src/cubing/search/instantiator.ts b/src/cubing/search/instantiator.ts index b97e23e2f..a73b0a36b 100644 --- a/src/cubing/search/instantiator.ts +++ b/src/cubing/search/instantiator.ts @@ -174,8 +174,8 @@ export async function mapToAllWorkers( async function instantiateWorkerImplementation(): Promise { if (globalThis.location?.protocol === "file:") { - console.error( - "This current web page is loaded from the local filesystem (the URL starts with `file:`). In all modern browser, `cubing.js` is unable to generate scrambles in this situation. See: https://js.cubing.net/cubing/scramble/#random-scramble", + console.warn( + "This current web page is loaded from the local filesystem (a URL that starts with `file://`). In this situation, `cubing.js` may be unable to generate scrambles in some browsers. See: https://js.cubing.net/cubing/scramble/#file-server-required", ); } diff --git a/src/docs/js.cubing.net/cubing/scramble/index.html b/src/docs/js.cubing.net/cubing/scramble/index.html index c9dd038b3..ecfd92d6b 100644 --- a/src/docs/js.cubing.net/cubing/scramble/index.html +++ b/src/docs/js.cubing.net/cubing/scramble/index.html @@ -120,10 +120,33 @@

Random Scramble

href="https://www.worldcubeassociation.org/regulations/scrambles/">the official scramble program. - Also: +

+ + +
+

Using a file server

+

+ If you want to generate scrambles using cubing.js, please + ensure the page is accessed from a server using a URL that starts with one of the following: +

+ Scramble generation will not work in Google + Chrome if your browser is showing a file from your file system using a URL + that starts with: +

+

+ If you need to use a file server for local development, you may find one of the following commands useful: +