Add event for theme/lang

This commit is contained in:
Oleg Korshul
2025-08-28 13:31:15 +03:00
parent 1b1c4964b0
commit 19016b6755

View File

@ -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\