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

Weinre fails to load in browsers without a built-in development console

    XMLWordPrintableJSON

Details

    Description

      I couldn't work out where to submit a pull request, so I'm doing an issue report instead. Additionally, this issue applies to version 2.0.0-pre-HH0SN197 of Weinre, but I don't know which version of Cordova that maps to.

      This issue has been a massive pain to debug, as the issue is not present on desktop computers and there are no debugging tools on mobile devices, hence why I need Weinre in the first place! In fact, the issue is even more specific than that: The issue affects all browsers WITHOUT debugging tools.

      The error is: "Unable to set property __original of undefined or null reference." The issue occurs on line 172 of Console.amd.js. In order to fix it, I added the following lines of code above line 168:

      if(!window.console)
      {
      window.console = {};
      }

      I'm sure there's a more elegant way of solving this, but it does the trick.

      Good luck!

      Attachments

        Activity

          People

            pmuellr Patrick Mueller
            YM_Industries Joshua Walsh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified