Skip to content

Commit

Permalink
Fix missing url-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Oct 29, 2024
1 parent 2193592 commit 6c9d097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildtools/check-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
'use strict';

const path = require('path');
const URL = require('url');
const fs = require('fs');
const puppeteer = require('puppeteer');
const parse = require('url-parse');

const arg = process.argv[2];
if (!arg) {
Expand Down Expand Up @@ -174,7 +174,7 @@ function loaded(page, browser) {
} else if (url == 'https://sgx.geodatenzentrum.de/wmts_basemapde/1.0.0/WMTSCapabilities.xml') {
request.respond(SgxCapabilities);
} else if (
parse(url).host == parse(page_url).host ||
URL.parse(url).host === URL.parse(page_url).host ||
url.startsWith('http://localhost:') ||
url.startsWith('https://geomapfish-demo') ||
url.startsWith('https://wmts.geo.admin.ch/') ||
Expand Down

0 comments on commit 6c9d097

Please sign in to comment.