v0.3
This commit is contained in:
1 parent
d1ee8edbbd
commit
7733a44362
429 files changed
+75840
-94
No files matched your search
+11
@@ -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;
|
||||
Reference in new issue
Block a user