Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix global instance reference #21

Merged
merged 2 commits into from
Aug 7, 2022
Merged

Fix global instance reference #21

merged 2 commits into from
Aug 7, 2022

Conversation

daun
Copy link
Member

@daun daun commented Aug 7, 2022

In unmount(), the swup instance is not grabbed from this.swup but inadvertently from window.swup, which is only defined if the debug plugin is used. This is a blocker for use as ESM module.

@daun daun requested review from gmrchk and hirasso August 7, 2022 19:11
@daun daun mentioned this pull request Aug 7, 2022
@hirasso hirasso merged commit 0688ff4 into master Aug 7, 2022
@daun daun deleted the fix-global branch August 7, 2022 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants