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