mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix home screen sentinel being added repeatedly
This commit is contained in:
1 parent
f8f3e88698
commit
780e323d76
1 file changed
+5
@@ -770,6 +770,11 @@
|
||||
// Wait for homeSectionsContainer to be added to the class
|
||||
await waitForHomeSectionsContainer();
|
||||
|
||||
const existingSentinel = container.querySelector('#kefin-home-screen-sentinel');
|
||||
if (existingSentinel) {
|
||||
return;
|
||||
}
|
||||
|
||||
const sentinel = document.createElement('div');
|
||||
sentinel.id = 'kefin-home-screen-sentinel';
|
||||
|
||||
|
||||
Reference in new issue
Block a user