main.js:333 Uncaught TypeError: Failed to construct 'URL': Invalid URL
at Vue$3.parseURL (main.js:333)
at boundFn (vue.js:194)
at invoker (vue.js:1992)
at HTMLButtonElement.fn._withTask.fn._withTask (vue.js:1790)
CODE:
// methods functions perform CRUD operations on the `data` property
methods: {
help: function(url = 'https://docs.mapbox.com/api/search/#forward-geocoding') {
window.open(url, '_blank');
},
//Parse Settings from a Mapbox API URL
parseURL: function() {
const url = new URL(this.cnf.url);
this.resetCnf();
Context
Clicking the parse button in the sandbox threw an error gave no visual indication there was an error or missing/incorrect params in the API call.
QUERY:
EXCEPTION:
CODE: