1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-12 17:46:26 +02:00

add auto patreon modal open

This commit is contained in:
Kushagra Gour
2018-03-26 03:04:25 +05:30
parent 42e1188071
commit d5e374e72f

View File

@ -2546,6 +2546,16 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
// Old onboarding. // Old onboarding.
// utils.once(document, 'overlaysClosed', function() {}); // 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 ( if (
!lastSeenVersion || !lastSeenVersion ||
utils.semverCompare(lastSeenVersion, version) === -1 utils.semverCompare(lastSeenVersion, version) === -1