Skip to content

Commit 1496242

Browse files
authored
Fix #411: Make dom.console work in web workers. (#412)
1 parent 0f6669a commit 1496242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/scalajs/dom/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,5 @@ package object dom {
219219
lazy val window: Window = js.Dynamic.global.window.asInstanceOf[Window]
220220
lazy val document: html.Document = window.document
221221

222-
lazy val console: Console = window.console
222+
lazy val console: Console = js.Dynamic.global.console.asInstanceOf[Console] // #411
223223
}

0 commit comments

Comments
 (0)