safari workaround for workers. disable decals in dark mode. add client listener before starting client
This commit is contained in:
parent
210855bcf9
commit
08d76c8b2f
4 changed files with 10 additions and 7 deletions
|
|
@ -191,7 +191,8 @@
|
|||
});
|
||||
UC.setHoverPop(false);
|
||||
updateFPS();
|
||||
if (control.decals) {
|
||||
if (control.decals && !control.dark) {
|
||||
// disable decals in dark mode
|
||||
loadDeviceTexture(currentDevice, deviceTexture);
|
||||
} else {
|
||||
clearDeviceTexture();
|
||||
|
|
@ -909,7 +910,9 @@
|
|||
function loadDeviceTexture(dev, texture) {
|
||||
clearDeviceTexture();
|
||||
deviceTexture = texture;
|
||||
if (!(texture && API.conf.get().controller.decals)) {
|
||||
let { decals, dark } = API.conf.get().controller;
|
||||
// disable decals in dark mode
|
||||
if (!(texture && decals && !dark)) {
|
||||
return;
|
||||
}
|
||||
let { width, height } = texture.image;
|
||||
|
|
|
|||
Loading…
Reference in a new issue