Skip to content

Commit 12741fd

Browse files
committed
修复没有开启常用表情功能的情况下依旧会加载对应数据的问题
1 parent 6c3a917 commit 12741fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,13 @@ function onLoad(plugin) {
160160
// 返回常用表情包数据
161161
ipcMain.handle("LiteLoader.lite_tools.getCommonlyEmoticons", (event) => {
162162
log("返回本地表情包数据");
163-
return localEmoticonsConfig;
163+
if (options.localEmoticons.commonlyEmoticons) {
164+
return localEmoticonsConfig;
165+
} else {
166+
return {
167+
commonlyEmoticons: [],
168+
};
169+
}
164170
});
165171

166172
// 打开网址

0 commit comments

Comments
 (0)