@jsenv/core 27.0.0-alpha.30 → 27.0.0-alpha.31
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/package.json
CHANGED
|
@@ -105,13 +105,12 @@ const isNewCssStyleSheetCall = (node) => {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
const isDocumentAdoptedStyleSheets = (node) => {
|
|
108
|
-
const callee = node.callee
|
|
109
108
|
return (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
node.type === "MemberExpression" &&
|
|
110
|
+
node.object.type === "Identifier" &&
|
|
111
|
+
node.object.name === "document" &&
|
|
112
|
+
node.property.type === "Identifier" &&
|
|
113
|
+
node.property.name === "adoptedStyleSheets"
|
|
115
114
|
)
|
|
116
115
|
}
|
|
117
116
|
|