mirror of
https://github.com/stevenjoezhang/live2d-widget.git
synced 2024-11-22 12:39:59 +08:00
Replace the regex with an empty function object
This commit is contained in:
parent
37eab21613
commit
4c784e6546
@ -51,11 +51,10 @@ function loadWidget(waifuPath, apiPath) {
|
|||||||
$("#waifu-toggle").show().animate({ "margin-left": -50 }, 1000);
|
$("#waifu-toggle").show().animate({ "margin-left": -50 }, 1000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
var re = /Live2D Widget/;
|
var devtools = () => {};
|
||||||
console.log(re);
|
console.log("%c", devtools);
|
||||||
re.toString = () => {
|
devtools.toString = () => {
|
||||||
showMessage("哈哈,你打开了控制台,是想要看看我的小秘密吗?", 6000, 9);
|
showMessage("哈哈,你打开了控制台,是想要看看我的小秘密吗?", 6000, 9);
|
||||||
return "";
|
|
||||||
};
|
};
|
||||||
window.addEventListener("copy", () => {
|
window.addEventListener("copy", () => {
|
||||||
showMessage("你都复制了些什么呀,转载要记得加上出处哦!", 6000, 9);
|
showMessage("你都复制了些什么呀,转载要记得加上出处哦!", 6000, 9);
|
||||||
|
Loading…
Reference in New Issue
Block a user