We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6569451 commit 82030eaCopy full SHA for 82030ea
examples/issue-154/index.js
@@ -1,9 +1,10 @@
1
import "./style.css";
2
3
window.addEventListener("load", () => {
4
- console.log(
5
- getComputedStyle(document.body).background.match(/rgb\(255, 0, 0\)/)
6
- ? "ok"
7
- : "error"
+ const { integrity } = document.querySelector("link");
+ const loaded = getComputedStyle(document.body).background.match(
+ /rgb\(255, 0, 0\)/
8
);
+
9
+ console.log(integrity && loaded ? "ok" : "error");
10
});
0 commit comments