@cowwo/dsh-icon-custom 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/client.js +5 -2
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -363,8 +363,11 @@ window.__ModuleLoader__.load({
|
|
|
363
363
|
// Brand-mark seat: replaces only the whale mark (verified: a
|
|
364
364
|
// third-party registration wins over the official occupant and the
|
|
365
365
|
// official package's mark steps aside). The brand NAME text is a
|
|
366
|
-
// separate seat and is left untouched.
|
|
367
|
-
|
|
366
|
+
// separate seat and is left untouched. priority -1 is required:
|
|
367
|
+
// the official occupant holds priority 0, and same-priority
|
|
368
|
+
// registrations throw ("register at a different priority to shadow
|
|
369
|
+
// it (lowest renders)").
|
|
370
|
+
ctx.slots.inject("sidebar.brand.mark", () => ctx.slots.register({ name: "sidebar.brand.mark", priority: -1 }, (props) => React.createElement(BrandMark, { ...props, rpc })));
|
|
368
371
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
369
372
|
name: "settings.section",
|
|
370
373
|
id: "favicon",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowwo/dsh-icon-custom",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "自定义浏览器标签页图标:在设置页上传 SVG/PNG/ICO,立即生效并持久保存。· Custom browser tab favicon: upload SVG/PNG/ICO from the settings page, applies instantly and persists.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|