Fix saveChat positional argument migration

8d279dd94ddee6aade5af6370d6815c5522c154b

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -6757,7 +6757,7 @@ export function saveChatDebounced() {
6757 * @returns {Promise<void>}6757 * @returns {Promise<void>}
6758 */6758 */
6759export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) {6759export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) {
6760 if (arguments.length > 1 && typeof arguments[0] !== 'object') {6760 if (arguments.length > 0 && typeof arguments[0] !== 'object') {
6761 console.trace('saveChat called with positional arguments. Please use an object instead.');6761 console.trace('saveChat called with positional arguments. Please use an object instead.');
6762 [chatName, withMetadata, mesId, force] = arguments;6762 [chatName, withMetadata, mesId, force] = arguments;
6763 }6763 }