mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:42:27 +01:00
fix util.computedStyle
This commit is contained in:
@@ -141,8 +141,7 @@ const util = { //{{{
|
||||
{
|
||||
while (node instanceof Text && node.parentNode)
|
||||
node = node.parentNode;
|
||||
let style = node.ownerDocument.defaultView.getComputedStyle(node, null);
|
||||
return util.Array.assocToObj(Array.map(style, function (k) [k, style.getPropertyValue(k)]));
|
||||
return node.ownerDocument.defaultView.getComputedStyle(node, null);
|
||||
},
|
||||
|
||||
copyToClipboard: function (str, verbose)
|
||||
|
||||
Reference in New Issue
Block a user