Skip to content

Commit e790c53

Browse files
committed
fix: 云开发右键“删除记录”缺失 #155
1 parent 6bddcee commit e790c53

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

res/scripts/document_start.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
(() => {
2+
{
3+
// fix: 云开发 -> 记录列表 -> 右键菜单项目缺少
4+
let env = undefined
5+
Object.defineProperty(window, 'env', {
6+
set(v) {
7+
v.platform = 'linux'
8+
env = v
9+
},
10+
get() {
11+
return env
12+
}
13+
})
14+
}
215
(() => {
316
if (window.require) {
417
// fix: 代码高亮失效

0 commit comments

Comments
 (0)