From 81f8598691ec972e172b4281cb40a8c46562cc91 Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 10 Jan 2025 15:04:49 +0800 Subject: [PATCH] add some --- lib/user.js | 5 ++++- panel/header.js | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/user.js b/lib/user.js index a57d2b83..3bca68dc 100644 --- a/lib/user.js +++ b/lib/user.js @@ -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) { diff --git a/panel/header.js b/panel/header.js index a4909973..1ad96364 100644 --- a/panel/header.js +++ b/panel/header.js @@ -196,8 +196,7 @@ 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 }, + height: function(can) { return can._target.offsetHeight }, }) Volcanos(chat.ONPLUGIN, { location: shy("请求地址", {copy: function(can) { can.user.copy(msg._event, can, location.href) }}, [web.LINK, ice.LIST, ice.COPY], function(can, msg, cb) {