Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12639

Battery Status plugin: tests should use console.error() instead of non-existing console.err()

    XMLWordPrintableJSON

    Details

      Description

      The following code may lead to an app crash because console.err() doesn't exist:

      afterEach(function () {
          if (!batteryStatusUnsupported) {
              try {
                  window.removeEventListener("batterycritical", onEvent, false);
              }
              catch (e) {
                  console.err('Error removing batterycritical event listener: ' + e);
              }
          }
      });
      

        Attachments

          Activity

            People

            • Assignee:
              alsorokin Alexander Sorokin
              Reporter:
              alsorokin Alexander Sorokin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: