editor: fix pro permission handler always return false

This commit is contained in:
ammarahm-ed
2022-09-06 17:12:33 +05:00
parent 5a53e402c4
commit 396757abe9

View File

@@ -51,8 +51,6 @@ export function usePermissionHandler(options: PermissionHandlerOptions) {
ev.preventDefault();
break;
}
ev.preventDefault();
}
window.addEventListener("permissionrequest", onPermissionRequested);
return () => {