chore(nui): WIP React rewrite

This commit is contained in:
Luke committed 2021-12-30 20:05:07 +01:00
1 parent ce802e7553
commit b2b1a64c8f
35 files changed
+391 -460

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ interface DebugEvent<T = any> {
* @param timer - How long until it should trigger (ms)
*/
export const debugData = <P>(events: DebugEvent<P>[], timer = 1000): void => {
if (isEnvBrowser()) {
if (process.env.NODE_ENV === "development" && isEnvBrowser()) {
for (const event of events) {
setTimeout(() => {
window.dispatchEvent(