Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

21
static/js/ketcher2/node_modules/reload-css/lib/url.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
var URL = require('url');
module.exports.resolve = URL.resolve.bind(URL);
module.exports.format = URL.format.bind(URL);
module.exports.parse = function (url) {
// Handle protocol-relative URLs, a browser feature
if (url.indexOf('//') === 0) {
url = document.location.protocol + url;
}
return URL.parse(url);
};
module.exports.key = function (url, baseUrl) {
// Strip hash/query and get a resolved URL pathname
var parsed = URL.parse(url);
url = URL.format({
pathname: (parsed.pathname || '').replace(/\/+$/, '/')
});
return URL.resolve(baseUrl || document.location.pathname, url);
};