Open job-tracker-git opened 2 months ago
I think this code is the issue, I'm already listening to messages on the chrome runtime, and doing things that sends messages like taking screenshots, hence the infinite loop that it gets stuck in, is there a way I can edit this so I can send a message in a different way?
Describe the bug A clear and concise description of what the bug is. I've tried tried a simple instance of invoking the trail page, and it is getting called in an infinite loop:
if (!window.location.href.startsWith('chrome://extensions/')){ extpay.getUser().then(user => { if (user.trialStartedAt == null){ try{ extpay.openTrialPage("7-day"); } catch(e){ console.log("error", e); } } else if(user.trialStartedAt != null && (now - user.trialStartedAt) > sevenDays && (!user.paid)) { extpay.openPaymentPage() userGood = false } }); }
To Reproduce Steps to reproduce the behavior: try and use openTrialPage, and you will get the popup stuck in an infinity loop of opening itself up.Expected behavior This should only open up once Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.