mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 01:56:24 +02:00
add auto patreon modal open
This commit is contained in:
@ -2546,6 +2546,16 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
|
||||
// Old onboarding.
|
||||
// utils.once(document, 'overlaysClosed', function() {});
|
||||
}
|
||||
// If its an upgrade
|
||||
if (
|
||||
lastSeenVersion &&
|
||||
utils.semverCompare(lastSeenVersion, version) === -1 &&
|
||||
!window.localStorage.pledgeModalSeen
|
||||
) {
|
||||
scope.openSupportDeveloperModal();
|
||||
window.localStorage.pledgeModalSeen = true;
|
||||
}
|
||||
|
||||
if (
|
||||
!lastSeenVersion ||
|
||||
utils.semverCompare(lastSeenVersion, version) === -1
|
||||
|
Reference in New Issue
Block a user