mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Assistant base embedded
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
; (function () {
|
||||
;(function () {
|
||||
window.sqlbot_assistant_handler = window.sqlbot_assistant_handler || {}
|
||||
const defaultData = {
|
||||
id: '1',
|
||||
@@ -461,8 +461,10 @@
|
||||
let tempData = Object.assign(defaultData, { id, domain_url })
|
||||
if (config_json) {
|
||||
const config = JSON.parse(config_json)
|
||||
Object.assign(tempData, config)
|
||||
tempData = Object.assign(tempData, config)
|
||||
if (config) {
|
||||
delete config.id
|
||||
tempData = Object.assign(tempData, config)
|
||||
}
|
||||
}
|
||||
tempData['online'] = online && online.toString().toLowerCase() == 'true'
|
||||
initsqlbot_assistant(tempData)
|
||||
|
||||
Reference in New Issue
Block a user