mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-28 03:27:10 +00:00
website: Fix popup not collapsing after demo walkthrough completes
Remove firstTake && !demoFinishedByStory guard from takeOver handler so clicks outside the extension mockup always collapse the popup, regardless of whether the automated walkthrough finished.
This commit is contained in:
+2
-3
@@ -784,9 +784,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const firstTake = !userTookOver;
|
const firstTake = !userTookOver;
|
||||||
userTookOver = true;
|
userTookOver = true;
|
||||||
finishDemo();
|
finishDemo();
|
||||||
// if the story left the popup open and the user clicked elsewhere,
|
// Clicks outside the popup (and not on its launcher icon) always collapse the popup
|
||||||
// tuck it away; clicks inside the popup (or on its icon) keep it
|
if (e && e.target &&
|
||||||
if (firstTake && !demoFinishedByStory && e && e.target &&
|
|
||||||
!e.target.closest('.extension-mockup') &&
|
!e.target.closest('.extension-mockup') &&
|
||||||
!e.target.closest('.demo-ext-launcher')) {
|
!e.target.closest('.demo-ext-launcher')) {
|
||||||
setPopupOpen(false);
|
setPopupOpen(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user