Fix url comparison

This commit is contained in:
Idrees Hassan committed 2025-08-16 18:21:42 -04:00
1 parent 555d85a9a7
commit 9fca974233
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -911,7 +911,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
// Render all sticky notes
for (let stickyNote of stickyNotes) {
if (stickyNote.site === window.location.href.split("?")[0]) {
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
renderStickyNote(stickyNote);
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ const userScriptHeader =
`// ==UserScript==
// @name Browser Bird
// @namespace https://idreesinc.com
// @version 2025-08-16-1
// @version 2025-08-16-2
// @description birb
// @author Idrees
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
+1 -1
View File
@@ -1229,7 +1229,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
// Render all sticky notes
for (let stickyNote of stickyNotes) {
if (stickyNote.site === window.location.href.split("?")[0]) {
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
renderStickyNote(stickyNote);
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Browser Bird
// @namespace https://idreesinc.com
// @version 2025-08-16-1
// @version 2025-08-16-2
// @description birb
// @author Idrees
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
@@ -1243,7 +1243,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
// Render all sticky notes
for (let stickyNote of stickyNotes) {
if (stickyNote.site === window.location.href.split("?")[0]) {
if (stickyNote.site.split("?")[0] === window.location.href.split("?")[0]) {
renderStickyNote(stickyNote);
}
}