Update utils.js

This commit is contained in:
Kakarot
2021-10-13 20:42:39 -05:00
committed by GitHub
parent c82fbbd2fe
commit da8da214e4
+1 -1
View File
@@ -13,7 +13,7 @@ export const isEnvBrowser = () => !window.invokeNative;
export const fetchNui = async (evName, data, mockData = null) => {
if (isEnvBrowser()) return mockData;
const resourceName = "qb-core";
const resourceName = window.GetParentResourceName();
const rawResp = await fetch(`https://${resourceName}/${evName}`, {
body: JSON.stringify(data),