Log Zotero.alert() calls to the terminal
This commit is contained in:
parent
61452a835b
commit
a55852ea1c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue