tangled
alpha
login
or
join now
notnite.com
/
moonlight
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
commands: fix section icon patch
Cynthia Foxwell
11 months ago
4eed16bf
0af9161d
+3
-3
1 changed file
expand all
collapse all
unified
split
packages
core-extensions
src
commands
index.ts
+3
-3
packages/core-extensions/src/commands/index.ts
···
53
53
}
54
54
},
55
55
{
56
56
-
find: ".icon,bot:null===",
56
56
+
find: ".icon,bot:null==",
57
57
replace: {
58
58
-
match: /(\.useMemo\(\(\)=>{)(if\((\i)\.type)/,
59
59
-
replacement: (_, before, after, section) => `${before}
58
58
+
match: /(\.useMemo\(\(\)=>{(var \i;)?)((return |if\()(\i)\.type)/,
59
59
+
replacement: (_, before, beforeVar, after, afterIf, section) => `${before}
60
60
if (${section}.id==="${APPLICATION_ID}") return "https://moonlight-mod.github.io/favicon.png";
61
61
${after}`
62
62
}