alertify.js icon indicating copy to clipboard operation
alertify.js copied to clipboard

Not working in FireFox extension

Open VinceVDB opened this issue 11 years ago • 2 comments

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.

VinceVDB avatar Jun 16 '14 11:06 VinceVDB

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

QWp6t avatar Jun 16 '14 15:06 QWp6t

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

VinceVDB avatar Jun 17 '14 09:06 VinceVDB