Windows 7 badgeText

2 views
Skip to first unread message

Dan-o

unread,
Dec 12, 2009, 11:58:27 PM12/12/09
to mozilla-labs-prism
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.

Jason Miller

unread,
Dec 14, 2009, 10:58:05 PM12/14/09
to mozilla-l...@googlegroups.com
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 // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more



--

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.
For more options, visit this group at http://groups.google.com/group/mozilla-labs-prism?hl=en.



Dan-o

unread,
Dec 15, 2009, 11:22:32 AM12/15/09
to mozilla-labs-prism
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>
> > .
Reply all
Reply to author
Forward
0 new messages