mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Add event for theme/lang
This commit is contained in:
@ -1,5 +1,18 @@
|
||||
(function(window, undefined){
|
||||
|
||||
window.on_update_plugin_info = function(obj)
|
||||
{
|
||||
if (obj["theme"])
|
||||
{
|
||||
console.log(JSON.parse(obj["theme"]));
|
||||
}
|
||||
|
||||
if (obj["lang"])
|
||||
{
|
||||
console.log(obj["lang"]);
|
||||
}
|
||||
}
|
||||
|
||||
function GetSystemPrompt() {
|
||||
let systemPrompt = "\
|
||||
You are an assistant that calls functions in a strict format **only when needed**.\n\
|
||||
|
||||
Reference in New Issue
Block a user