[ver] 1.61.5

This commit is contained in:
kwaroran
2023-12-01 19:47:08 +09:00
parent 8c07915d2d
commit 06d1090e1f
5 changed files with 23 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "RisuAI", "productName": "RisuAI",
"version": "1.61.4" "version": "1.61.5"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {

View File

@@ -97,13 +97,13 @@ addWorkerFunction('setChat', async (data:Message[]) => {
if(typeof dat.data !== 'string'){ if(typeof dat.data !== 'string'){
return false return false
} }
if(typeof dat.saying !== 'string'){ if(typeof dat.saying !== 'string' && dat.saying !== null && dat.saying !== undefined){
return false return false
} }
if(typeof dat.time !== 'number'){ if(typeof dat.time !== 'number' && dat.time !== null && dat.time !== undefined){
return false return false
} }
if(typeof dat.chatId !== 'string'){ if(typeof dat.chatId !== 'string' && dat.chatId !== null && dat.chatId !== undefined){
return false return false
} }
newChat.push({ newChat.push({

View File

@@ -75,7 +75,23 @@ const whitelist = [
"Element", "Element",
"Text", "Text",
"Comment", "Comment",
'onmessage' 'onmessage',
"DOMParser",
"XMLSerializer",
"TextEncoder",
"TextDecoder",
"AbortController",
"AbortSignal",
"Event",
"CustomEvent",
"EventTarget",
"OffscreenCanvas",
"ImageBitmap",
"ImageBitmapRenderingContext",
"createImageBitmap",
"OffScreenCanvasRenderingContext2D",
"WebGL2RenderingContext",
"WebGLRenderingContext",
] ]
const evaluation = globaly.eval const evaluation = globaly.eval

View File

@@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba';
export const DataBase = writable({} as any as Database) export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false) export const loadedStore = writable(false)
export let appVer = "1.61.4" export let appVer = "1.61.5"
export let webAppSubVer = '' export let webAppSubVer = ''
export function setDatabase(data:Database){ export function setDatabase(data:Database){

View File

@@ -1 +1 @@
{"version":"1.61.4"} {"version":"1.61.5"}