javascript - How do I get a browser button to display in Internet Explorer using Crossrider? -
we small uk charity , local web design company has built browser extension using crossrider. our problem browser icon not display in ie, fine in firefox , chrome. have been unable find wrong. unfortunately, javascript novice. when looked @ background.js file think has been coded wrong. there reference images chrome , firefox not ie understanding of crossrider need have single reference , not specify individual browsers? appreciate anyone's on simple question.
appapi.ready(function($) {  if(appapi.browser.name == "firefox") {     appapi.browseraction.setresourceicon('tiny_icon_23.png'); } else if(appapi.browser.name == "chrome") {     appapi.browseraction.setresourceicon('tiny_icon_24.png'); } else {     appapi.browseraction.setresourceicon('tiny_icon_23.png'); }  appapi.browseraction.setpopup({     resourcepath:'popup.html',     width: 366,     height: 207 });       
 
Comments
Post a Comment