From d5e374e72f0f503512eae0cb7d644ccbd2766a00 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Mon, 26 Mar 2018 03:04:25 +0530 Subject: [PATCH] add auto patreon modal open --- src/script.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/script.js b/src/script.js index 6c2d754..ea79fd9 100644 --- a/src/script.js +++ b/src/script.js @@ -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