[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:
Kiwi
2018-11-27 18:54:55 +00:00
committed by Wyatt Johnson
parent 50cb46a053
commit 3fcb9a179a
15 changed files with 428 additions and 258 deletions
@@ -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
View File
@@ -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";