diff options
author | Renaud Chénard <24716172+grazil@users.noreply.github.com> | 2018-01-14 23:12:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-14 23:12:59 +0100 |
commit | a2b7fcdb4ddf55122f158d54a5364df48187f752 (patch) | |
tree | cf4998bebbda32cab32150961b3afcf0d1948fab | |
parent | d5cd8e6f71f640ec7b6d9feb369576c9b89de5b8 (diff) | |
download | Nim-a2b7fcdb4ddf55122f158d54a5364df48187f752.tar.gz |
Use generic for 'stateObject' in func 'pushState'
-rw-r--r-- | lib/js/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 643478502..55692d47d 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -507,7 +507,7 @@ proc replace*(loc: Location, s: cstring) proc back*(h: History) proc forward*(h: History) proc go*(h: History, pagesToJump: int) -proc pushState*(h: History, stateObject, title, url: cstring) +proc pushState*[T](h: History, stateObject: T, title, url: cstring) # Navigator "methods" proc javaEnabled*(h: Navigator): bool |