diff --git a/components/chnmIScholarService.js b/components/chnmIScholarService.js index 5cf65fb7c1..f5f1f96eb4 100644 --- a/components/chnmIScholarService.js +++ b/components/chnmIScholarService.js @@ -58,6 +58,14 @@ function alert(msg){ .alert(null, "", msg); } +/** +* Convenience method to replicate window.confirm() +**/ +function confirm(msg){ + return Cc["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Ci.nsIPromptService) + .confirm(null, "", msg); +} // // XPCOM goop