Last active
October 8, 2016 13:09
-
-
Save jhegedus42/287e6b24228bda786cf6ef8cce63cd3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@js.native | |
trait Window extends js.Object { | |
def alert(message: String): Unit = js.native | |
} | |
@js.native | |
@JSName("window") | |
object W extends Window | |
object ScalaJSExample extends js.JSApp { | |
def main(): Unit = { | |
W.alert("bla") | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment