Skip to content

Commit

Permalink
wasm: fix lint #build-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Apr 20, 2024
1 parent 2b6ce33 commit fec67c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(super) fn open_browser_internal(

// always return true for a dry run
if options.dry_run {
if let Some(_) = web_sys::window() {
if web_sys::window().is_some() {
return Ok(());
} else {
return Err(Error::new(ErrorKind::Other, "no browser window available"));
Expand Down

0 comments on commit fec67c3

Please sign in to comment.