mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 14:35:46 +01:00
Fix unwanted serialization of Logo highlight group.
This commit is contained in:
@@ -24,12 +24,12 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
let img = Image();
|
let img = Image();
|
||||||
img.src = this.logo || "chrome://" + this.name + "/content/logo.png";
|
img.src = this.logo || "chrome://" + this.name + "/content/logo.png";
|
||||||
img.onload = function () {
|
img.onload = function () {
|
||||||
highlight.set("Logo", String(<>
|
highlight.loadCSS(<>{"!Logo {"}
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: url({img.src});
|
background: url({img.src});
|
||||||
width: {img.width}px;
|
width: {img.width}px;
|
||||||
height: {img.height}px;
|
height: {img.height}px;
|
||||||
</>));
|
{"}"}</>);
|
||||||
img = null;
|
img = null;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -244,7 +244,6 @@ const ConfigBase = Class(ModuleBase, {
|
|||||||
!HintActive;;* background-color: #88FF00 !important; color: black !important;
|
!HintActive;;* background-color: #88FF00 !important; color: black !important;
|
||||||
!HintImage;;* opacity: .5 !important;
|
!HintImage;;* opacity: .5 !important;
|
||||||
|
|
||||||
!Logo
|
|
||||||
// </css>
|
// </css>
|
||||||
]]></>),
|
]]></>),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user