Cordova is not defined when using Developer tools

Cordova is not defined when using Developer tools

ved Zoran Jeremic -
Antal besvarelser: 2

When I have Developer tools activated in Chromium browser, I have the error "Error while loading the page content." when I try to access the page or any other module, and the backend of this error is "ReferenceError: cordova is not defined" that is fired from the Moodle code when it identifies that cordova is undefined.

I've spent a lot of hours trying to setup everything from the scratch, reinstall ionic, cordova, nodejs... I even reinstalled the whole OS, and eventually I discovered that Developer tools are the problem. When it's activated and I refresh the page, after that cordova problem happens and I can't access any content.

I'm wondering if there is any solution for this or alternative tool or web browser that I could use, since Developer tools are quite useful for development.


Thanks,

Zoran

Gennemsnitsbedømmelse: -
I svar til Zoran Jeremic

Re: Cordova is not defined when using Developer tools

ved Dani Palou -
Billede af Core developers Billede af Moodle HQ Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af Plugin developers

Hello Zoran,

that's weird, we use Chromium Developer Tools all the time and it's working fine. Which OS and Chromium version are you using?

Kind regards,

Dani

I svar til Dani Palou

Re: Cordova is not defined when using Developer tools

ved Zoran Jeremic -

Hi Dani,

I'm using Chromium Version 45.0.2454.0 (64-bit) on Linux Mint 17.3

The only workaround I could find is that before I refresh the page, I close Developer tools, refresh page, and then open Developer tools again. In that case, it doesn't happen. If I forget to close it before refresh, it always happen.


Thanks,

Zoran