Fix url comparison

This commit is contained in:
Idrees Hassan
2025-08-16 18:21:42 -04:00
parent 555d85a9a7
commit 9fca974233
4 changed files with 5 additions and 5 deletions

2
dist/birb.js vendored
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);
}
}

4
dist/birb.user.js vendored
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);
}
}