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.
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.
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 thebrowser.xul
document, not thecontent.document
containing the HTML.I tried changing
var document = global.document, Alertify;
tovar 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.