28 lines
667 B
TypeScript
28 lines
667 B
TypeScript
/*
|
|
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
|
* Copyright (c) 2025 Vendicated and Vesktop contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Settings } from "renderer/settings";
|
|
|
|
import { addPatch } from "./shared";
|
|
|
|
addPatch({
|
|
patches: [
|
|
{
|
|
find: ".flashFrame(!0)",
|
|
replacement: {
|
|
match: /(\i)&&\i\.\i\.taskbarFlash&&\i\.\i\.flashFrame\(!0\)/,
|
|
replace: "$self.flashFrame()"
|
|
}
|
|
}
|
|
],
|
|
|
|
flashFrame() {
|
|
if (Settings.store.enableTaskbarFlashing) {
|
|
VesktopNative.win.flashFrame(true);
|
|
}
|
|
}
|
|
});
|