mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
[next] Support external config (#2088)
* fix: correctly determine expired token * feat: support external config * fix: lint * fix: npm audit fix
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Returns true if we are in an iframe.
|
||||
*/
|
||||
export default function areWeInIframe() {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
export { default as buildURL } from "./buildURL";
|
||||
export { default as parseURL } from "./parseURL";
|
||||
export { default as modifyQuery } from "./modifyQuery";
|
||||
export { default as areWeInIframe } from "./areWeInIframe";
|
||||
|
||||
Reference in New Issue
Block a user