We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87aad4 commit ffc8f05Copy full SHA for ffc8f05
docs/.vuepress/components/api/index.ts
@@ -5,5 +5,8 @@ export const apis = {
5
};
6
export const defaultApi = "cf";
7
export const api = () => {
8
+ if (typeof localStorage === "undefined") {
9
+ return apis[defaultApi];
10
+ }
11
return localStorage.getItem("api") || apis[defaultApi];
12
0 commit comments