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
// dom types | |
import org.scalajs.dom._ | |
// global | |
import scala.scalajs.js.Dynamic.global | |
// document with good type | |
val document = global.document.asInstanceOf[Document] | |
// body with good type | |
val body = document.getElementsByTagName("body").item(0).asInstanceOf[HTMLElement] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment