This commit is contained in:
Mrhongxing committed 2026-11-12 02:48:46 +08:00
1 parent d1ee8edbbd
commit 7733a44362
429 files changed
+75840 -94

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import platform from '../platform/index.js';
export default platform.hasStandardBrowserEnv
? ((origin) => (url) => {
url = new URL(url, document.baseURI || platform.origin);
return (
origin.protocol === url.protocol && origin.host === url.host && origin.port === url.port
);
})(new URL(platform.origin))
: () => true;