New “currentURL is not defined” Error in Google Apps Script Web Apps

  • A+

A few days ago this started appearing in my Google Apps Script Web App Consoles:

Uncaught (in promise) ReferenceError: currentURL is not defined at then.catch.e (content_script_bundle.js:13)

What might this be?


content_script_bundle.js is likely a script within a Chrome Extension. Ghostery has such a js file. Basically, it has caught an error of some kind

window.console.error("Could not run content script", e, currentURL())  

Unfortunately, the line in the script that pushes the error to the console itself has a minor bug whereby currentURL has not been defined so it squawks.

Just turn off Ghostery or whatever and the error will disappear. Although, you can just ignore it.


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: