Hmmm...when I added the localStorage line to background.html, I get an
error:

var isFirstrun = localStorage("firstrun");
Uncaught TypeError: Property 'localStorage' of object [object
DOMWindow] is not a function

I don't understand. I use localStorage later in the file, in an event
handler.


On Jan 4, 10:05 am, FractalBob <[email protected]> wrote:
> Thanks, Mohamed.
>
> On Jan 4, 9:26 am, Mohamed Mansour <[email protected]> wrote:
>
>
>
> > You can add a localStorage object such as 'firstrun'. And check for it when
> > the background page loads.
>
> > Something like this snippet:
>
> > if localStorage[firstrun] is not defined then
> >   open new tab to splash screen.
>
> > -Mohamed Mansour
>
> > On Mon, Jan 4, 2010 at 12:09 PM, FractalBob <[email protected]> wrote:
> > > Hi,
>
> > > I'd like to have a splash screen come up after the user installs my
> > > extension. I saw this when I installed the Google Similar Pages
> > > extension (cool extension, guys!) and would like to do the same thing.
> > > Thanks.
>
> > > Bob
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Chromium-extensions" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<chromium-extensions%2Bunsu
> > >  [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/chromium-extensions?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to