fabien-d / alertify.js

JavaScript Alert/Notification System
http://fabien-d.github.com/alertify.js/
4.26k stars 726 forks source link

Not working in FireFox extension #231

Open VinceVDB opened 10 years ago

VinceVDB commented 10 years ago

I really like this dialog, and I'm using it in a Chrome Extension. I'm porting the Chrome Extension to a FireFox extension right now, and unfortunately, this isn't working in the FF Extension.

I believe the problem has to do with document. In FF extension, document is the browser.xul document, not the content.document containing the HTML.

document

I tried changing var document = global.document, Alertify; to var document = content.document, Alertify; but unfortunately this doesn't seem to solve the problem.

I don't get any more error messages, but the dialog simply isn't showing on alertify.prompt(). Unfortunately I'm no Javascript wizard, so I'm hoping someone could take a look at this, or at least point me in the right direction as to where the problem could be.

QWp6t commented 10 years ago

Have you tried asking on MozillaZine? I think they'd be more helpful than Github.

VinceVDB commented 10 years ago

Not yet... I'm still trying to figure it out myself :) I'll ask over there if I really can't find it.