geolocation-8.x-3.x-dev/modules/geolocation_google_maps/tests/modules/geolocation_google_js_errors/js/geolocation_google_js_errors.js
modules/geolocation_google_maps/tests/modules/geolocation_google_js_errors/js/geolocation_google_js_errors.js
sessionStorage.setItem("geolocation_google_js_errors", JSON.stringify([]));
if (typeof console !== "undefined" && console.error) {
const originalErrorFunction = console.error;
console.error = (error) => {
const errors = JSON.parse(sessionStorage.getItem("geolocation_google_js_errors"));
errors.push(error);
sessionStorage.setItem("geolocation_google_js_errors", JSON.stringify(errors));
originalErrorFunction(error);
};
}
