browser-extension-utils 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -2
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export const setAttribute = (element, attr, value) =>
|
|
|
40
40
|
|
|
41
41
|
export const setStyle = (element, values) => {
|
|
42
42
|
// setAttribute(element, "style", value)
|
|
43
|
-
const
|
|
43
|
+
const style = element.style
|
|
44
44
|
if (typeof values === "string") {
|
|
45
45
|
values = toStyleKeyValues(values)
|
|
46
46
|
}
|
|
@@ -69,7 +69,6 @@ const toStyleKeyValues = (styleText) => {
|
|
|
69
69
|
|
|
70
70
|
export const toStyleMap = (styleText) => {
|
|
71
71
|
styleText = noStyleSpace(styleText)
|
|
72
|
-
console.log(styleText)
|
|
73
72
|
const map = {}
|
|
74
73
|
const keyValues = styleText.split("}")
|
|
75
74
|
for (const keyValue of keyValues) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-extension-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Utilities for developing browser extensions and userscripts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"document"
|
|
44
44
|
],
|
|
45
45
|
"rules": {
|
|
46
|
+
"prefer-destructuring": 0,
|
|
46
47
|
"capitalized-comments": 0
|
|
47
48
|
}
|
|
48
49
|
}
|