about summary refs log tree commit diff stats
path: root/src/html/dom.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/dom.nim')
-rw-r--r--src/html/dom.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 57b62ec6..6d4b285e 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -18,9 +18,12 @@ import img/png
 import io/loader
 import io/request
 import io/window
-import js/exception
+import js/domexception
+import js/error
 import js/javascript
+import js/opaque
 import js/timeout
+import js/tojs
 import types/blob
 import types/color
 import types/matrix
@@ -1101,7 +1104,7 @@ const SupportedTokensMap = {
 }.toTable()
 
 func supports(tokenList: DOMTokenList, token: string):
-    Result[bool, JSError] {.jsfunc.} =
+    JSResult[bool] {.jsfunc.} =
   if tokenList.localName in SupportedTokensMap:
     let lowercase = token.toLowerAscii()
     return ok(lowercase in SupportedTokensMap[tokenList.localName])