开发者

eslint: no return assign

开发者 https://www.devze.com 2022-12-07 20:37 出处:网络
So I\'m having a problem with a no return assign but my script seems good can someone help me with it?

So I'm having a problem with a no return assign but my script seems good can someone help me with it?

The script is:

(function() {
    'use strict';
    let root = document.querySelector(":root");
    root.style.setProperty("--tv-color-pane-background", "#00开发者_开发技巧0");

    setTimeout(() => document.querySelector("html.theme-dark .tv-floating-toolbar").style.backgroundColor = "black", 1000);
})();

on the settimeout line It's giving me this error:enter image description here

0

精彩评论

暂无评论...
验证码 换一张
取 消