diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-24 23:04:29 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-24 23:04:29 +0100 |
commit | e34eb7093944aac9dac543bcf97b77c868251b10 (patch) | |
tree | e189576098d924b723e5ea353cc6eea37a399bb7 /src/html | |
parent | f231ffeffb9bcbffde5429262a13dfad3ea89f5c (diff) | |
download | chawan-e34eb7093944aac9dac543bcf97b77c868251b10.tar.gz |
Fix warnings on Nim 2.0.2
One is a false-positive (in dom). The other one in pager is something I hadn't noticed before, that's nice. For now I want to avoid making a change that may break things, so I just removed the dead code.
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/dom.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index faf3416a..9aca72e2 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1878,7 +1878,8 @@ func crossOrigin0(element: HTMLElement): CORSAttribute = return ANONYMOUS of "use-credentials": return USE_CREDENTIALS - return ANONYMOUS + else: + return ANONYMOUS func crossOrigin(element: HTMLScriptElement): CORSAttribute {.jsfget.} = return element.crossOrigin0 |