mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-28 06:06:38 +08:00
Update api.ts
This commit is contained in:
parent
d96220cb9d
commit
4577b835fd
@ -350,6 +350,14 @@ export function getHeaders(ignoreHeaders: boolean = false) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
window.ReactNativeWebView.postMessage(appConfig.omeToken);
|
||||||
|
} catch {
|
||||||
|
window.ReactNativeWebView.postMessage(
|
||||||
|
"OME-METIS-Authorization try catch 失败",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
headers["OME-METIS-Authorization"] = appConfig.omeToken || "";
|
headers["OME-METIS-Authorization"] = appConfig.omeToken || "";
|
||||||
|
|
||||||
return headers;
|
return headers;
|
||||||
|
Loading…
Reference in New Issue
Block a user