aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-06-01 20:10:27 +0100
committerGitHub <noreply@github.com>2024-06-01 20:10:27 +0100
commita1b968624558801f488d68382b165d8debbdb9cb (patch)
tree3c20efcf689bf3452c3e2f7e3002ae03e38738be /examples
parenta5925ca867afce117ba156f54382814e2230331e (diff)
downloadlustre-a1b968624558801f488d68382b165d8debbdb9cb.tar.gz
lustre-a1b968624558801f488d68382b165d8debbdb9cb.zip
🔀 Fix crash in is_browser (#137)
If not in a browser then `window` may not be defined, resulting in a crash I ran a command wrong and this happened: ``` $ gleam run -- -m lustre/dev --help Compiled in 0.04s Running app.main file:///Users/louis/src/gleam/html_lustre_converter/app/build/dev/javascript/lustre/client-runtime.ffi.mjs:170 export const is_browser = () => window && window.document; ^ ReferenceError: window is not defined at is_browser (file:///Users/louis/src/gleam/html_lustre_converter/app/build/dev/javascript/lustre/client-runtime.ffi.mjs:170:40) at Module.start (file:///Users/louis/src/gleam/html_lustre_converter/app/build/dev/javascript/lustre/lustre.mjs:101:6) at main (file:///Users/louis/src/gleam/html_lustre_converter/app/build/dev/javascript/app/app.mjs:7:19) at file:///Users/louis/src/gleam/html_lustre_converter/app/build/dev/javascript/app/gleam.main.mjs:2:1 at ModuleJob.run (node:internal/modules/esm/module_job:195:25) at async ModuleLoader.import (node:internal/modules/esm/loader:336:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:106:12) ```
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions