refactor(server/source-handling): Altered how we handle source

These changes are made in case source is not guranteed to remain the same

Due to how JS should operate, this shouldn't be an issue but this just ensures that
This commit is contained in:
Taso committed 2021-02-14 20:17:41 -05:00
1 parent acb8e056c3
commit 1aa6a383ab
12 files changed
+222 -140

No files matched your search

-2
View File
@@ -14,8 +14,6 @@ import { mainLogger } from './sv_logger';
export let ESX: Server = null;
export const getSource = () => (global as any).source;
emit('esx:getSharedObject', (obj: Server) => (ESX = obj));
on('onServerResourceStart', (resource: string) => {