We are using CrossRider to develop an extension for Internet Explorer. I'm using debug mode with the following code in extension.js:
/************************************************************************************
This is your Page Code. The appAPI.ready() code block will be executed on every page load.
For more information please visit our docs site: http://docs.crossrider.com
*************************************************************************************/
appAPI.ready(function($) {
if (appAPI.isMatchPages("mail.google.com/*")) {
alert('mail.google.com');
} else if (appAPI.isMatchPages("*.mail.yahoo.com/*")) {
alert('mail.yahoo.com');
} else if (appAPI.isMatchPages("*.mail.live.com/*")) {
alert('mail.live.com');
} else if (appAPI.isMatchPages("*.webmail.aol.com/*", "*.mail.aol.com/*", "mail.aol.com/*")) {
alert('mail.aol.com');
} else if (appAPI.isMatchPages("http://mail.rambler.ru/mail/compose.cgi*")) {
alert('mail.rambler.ru');
}
});
I receive the alerts when I open new tabs or refresh pages at https://mail.google.com/mail/?pli=1#inbox, https://us-mg6.mail.yahoo.com/neo/launch?.rand=ch8u1egr4gthf and https://mail.aol.com/38815-816/aol-6/en-us/suite.aspx, but when I open a tab at https://bay180.mail.live.com/default.aspx - I receive the alert only when I open a new tab, not when I refresh the page (I didn't check http://mail.rambler.ru/mail/compose.cgi). What is the problem? Is it a bug in CrossRider or is it a feature? I don't understand why there is no alert when refreshing the page.