Log Zotero.alert() calls to the terminal

This commit is contained in:
Dan Stillman 2017-05-31 00:43:19 -04:00
parent 61452a835b
commit a55852ea1c

View file

@ -1127,6 +1127,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
* @param {String} msg
*/
this.alert = function (window, title, msg) {
this.debug(`Alert:\n\n${msg}`);
var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
ps.alert(window, title, msg);