We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c0282 commit 83995afCopy full SHA for 83995af
README.md
@@ -101,10 +101,10 @@ import JavaScriptKit
101
}
102
103
@JS func run() throws(JSException) {
104
- let button = document.createElement("button")!
+ let button = try document.createElement("button")
105
try button.setInnerText("Click Me")
106
- let container = document.getElementById("app")!
107
- container.appendChild(button)
+ let container = try document.getElementById("app")
+ try container.appendChild(button)
108
109
```
110
0 commit comments