mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 01:08:41 +08:00
app: polyfill Array.at
This fixes compatibility issue with older browsers like WeChat webview. The summary feature now works as expected.
This commit is contained in:
@@ -11,6 +11,10 @@ import { trimTopic } from "../utils";
|
||||
|
||||
import Locale from "../locales";
|
||||
|
||||
if (!Array.prototype.at) {
|
||||
require('array.prototype.at/auto');
|
||||
}
|
||||
|
||||
export type Message = ChatCompletionResponseMessage & {
|
||||
date: string;
|
||||
streaming?: boolean;
|
||||
|
Reference in New Issue
Block a user