Hi,
I made crossrider extension that requires authentication to our service so user can use that extension. If user did not logged in I'm setting setPopup to login.html otherwise to popup.html
function setPopup(popup){
var height = (popup == 'login.html')? 146 : 306;
appAPI.browserAction.setPopup({
resourcePath:popup,
height: height,
width: 350
});
}
so when use changes logged in state I'm setting other html file for popup (closing current one and setting new). This works great in Chrome but in Firefox initial popup is not changed. Is there any way to make this working in FF too?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hello Vl4d0,
Thank you for bringing this to our attention. We are now aware of the problem, but it's not a simple fix and the dev team will work to resolve it in the coming weeks.
For the information about the release of this fix, I recommend that you monitor our changelog and/or changelog RSS feed. -
-
I was able to work around this with the following technique:
1. Background or Extension.js should set the user status using DB.set() variabls.
2. Popup.html starts a timer task (setInterval) to fire every couple of seconds, to check the value of the user state with DB.get(). If the state has changed, then, change the content of the popup (using jQuery tools). -
Loading Profile...




EMPLOYEE

