Thanks for your reply Jason. I do already have the tray icon enabled,
and sorry about the "window" thing, that was a copy and paste error.
Here are both my webapp.ini and webapp.js:
webapp.ini
[Parameters]
id=
googl...@prism.app
name=Google Mail
uri=
mail.google.com
icon=webapp
status=false
location=false
sidebar=false
navigation=false
trayicon=true
webapp.js
function load() {
window.platform.icon().behavior =
Ci.nsIApplicationIcon.HIDE_ON_CLOSE;
window.platform.icon().badgeText = "11";
}
On Dec 14, 10:58 pm, Jason Miller <
ja...@developit.ca> wrote:
> I think you need to enable the tray icon in order to display badges. The
> code you posted should work, although you appear to have left out the "w" in
> "window".
>
> Jason Miller
>
519.872.0797 // developIT <
http://developit.ca/> // Jason Miller
> Design<
http://jasonmillerdesign.com/>
> *Developer of amoebaOS <
https://amoebaos.com/>,
> Shutterborg<
http://shutterb.org/>,
> Delitweet <
http://delitweet.com/> & more*
>
>
>
> On Sat, Dec 12, 2009 at 11:58 PM, Dan-o <
danomose...@gmail.com> wrote:
> > The following command does not seem to be having any result:
>
> > indow.platform.icon().badgeText = "11";
>
> > I don't know if it's something I'm doing wrong or what, I can't seem
> > to find any kind of documentation on badge text anywhere.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "mozilla-labs-prism" group.
> > To post to this group, send email to
mozilla-l...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
mozilla-labs-pr...@googlegroups.com<mozilla-labs-prism%2Bunsubs
cr...@googlegroups.com>
> > .