Changeset 01eff0


Ignore:
Timestamp:
Dec 3, 2014, 3:15:07 PM (5 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
85847e
Parents:
74f246
Message:

added hidden option to alert on javascript errors

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • defaults/preferences/preferences.js

    r74f246 r01eff0  
    3030pref("extensions.virtualIdentity.get_header_notification", true);
    3131pref("extensions.virtualIdentity.error_console", false);
     32pref("extensions.virtualIdentity.error_alert", false);
    3233pref("extensions.virtualIdentity.debug_notification", false);
    3334pref("extensions.virtualIdentity.debug_to_file", false);
  • modules/vI_log.js

    r74f246 r01eff0  
    7575        (!aMessage.errorMessage.contains("Error console says"))) {
    7676        MyLog.info("Error console says" + aMessage);
     77        if (vIprefs.get("error_alert"))
     78          Cc["@mozilla.org/appshell/window-mediator;1"]
     79          .getService(Ci.nsIWindowMediator)
     80          .getMostRecentWindow(null)
     81          .alert("Error console says:\n" + aMessage);
    7782      }
    7883    } catch (ex) {
Note: See TracChangeset for help on using the changeset viewer.