real error message
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
bd08e185f3
commit
b45fd3aebd
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@ export function setBadgeCount(count: number) {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "linux":
|
case "linux":
|
||||||
if (typeof count !== "number") { //sanitize
|
if (typeof count !== "number") { //sanitize
|
||||||
console.log("what the hel- *kaboom*")
|
throw new Error("count must be a number");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function emitDBusBadge(count: number, visible: boolean) {
|
function emitDBusBadge(count: number, visible: boolean) {
|
||||||
|
|
Loading…
Reference in a new issue