1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-01-10 15:04:49 +08:00
parent a6a2b12072
commit 81f8598691
2 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,10 @@ Volcanos("user", {
can.user.isWindows && name.push(html.WINDOWS), can.user.isWebview && name.push(html.WEBVIEW)
can.page.styleClass(can, document.body, name.join(lex.SP))
},
title: function(text) { if (window.webview) { return title(text) } return text && (document.title = text), document.title },
title: function(text) {
if (window.webview) { return title(text) }
return text && (document.title = text), document.title
},
language: function(can) { return (can.misc.SearchOrConf(can, aaa.LANGUAGE)||can.user.info.language||"") },
isEnglish: function(can) { return can.base.isIn(can.core.Split(can.user.language(can).toLowerCase()||"en", "_-.")[0], "en", "en-us") },
transValue: function(can, value, key) {

View File

@ -196,7 +196,6 @@ Volcanos(chat.ONEXPORT, {
avatar: function(can) { return can.misc.Resource(can, can.user.info.avatar == "void"? "": can.user.info.avatar) },
background: function(can) { return can.user.info.background == "void"? "": can.user.info.background },
theme: function(can) { return can._theme || can.misc.SearchOrConf(can, chat.THEME) || can.__theme || "" },
// || (can.base.isNight()? html.DARK: html.LIGHT) },
height: function(can) { return can._target.offsetHeight },
})
Volcanos(chat.ONPLUGIN, {