mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
one more
This commit is contained in:
parent
c3a10d5d95
commit
7dacf947bd
@ -1,7 +1,7 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
export function trusted(f: () => void): (event: React.MouseEvent<HTMLElement, MouseEvent>) => any {
|
export function trusted(f: () => void): (event: React.MouseEvent<HTMLElement, MouseEvent>) => void {
|
||||||
return function (event: React.MouseEvent<HTMLElement, MouseEvent>): any {
|
return function (event: React.MouseEvent<HTMLElement, MouseEvent>): void {
|
||||||
if (!event.isTrusted) return;
|
if (!event.isTrusted) return;
|
||||||
f();
|
f();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user