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.
2 parents eff9d44 + db5da4e commit 0109cb5Copy full SHA for 0109cb5
src/content.ts
@@ -41,6 +41,7 @@ function showGrayLayout() {
41
document.body.appendChild(grayLayout);
42
const scan = document.createElement("div");
43
scan.className = "scan";
44
+ scan.id = "__ga_scan__";
45
scan.style.background = `url('${scanGIF}') no-repeat center`;
46
grayLayout.appendChild(scan);
47
const captureBox = document.createElement("div");
@@ -76,6 +77,11 @@ function grayLayoutDown(event: MouseEvent) {
76
77
captureBox.style.width = "1px";
78
captureBox.style.height = "1px";
79
captureBox.style.display = "block";
80
+
81
+ const scan = document.getElementById("__ga_scan__");
82
+ if (scan) {
83
+ scan.style.background = "transparent";
84
+ }
85
return;
86
}
87
0 commit comments