diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-19 19:26:02 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-19 19:26:11 +0100 |
| commit | 692cc321e71c3d8ba39563c0882a668c17c180f0 (patch) | |
| tree | 561592f6b1e7439bb9dc33466e8c7044c35ace1b /src/html | |
| parent | d37bcfac83357c182789c0f2ebdbf940b4675434 (diff) | |
| download | chawan-692cc321e71c3d8ba39563c0882a668c17c180f0.tar.gz | |
dom: simplify a bit
Diffstat (limited to 'src/html')
| -rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 6da73aad..92011371 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -3958,7 +3958,7 @@ proc getComputedStyle0*(window: Window; element: Element; of ":after", "::after": peAfter of "": peNone else: return newCSSStyleDeclaration(nil, "") - if element.document.window.settings.scripting == smApp: + if window.settings.scripting == smApp: window.maybeRestyle() return newCSSStyleDeclaration(element, $element.computedMap[pseudo], computed = true, readonly = true) |