From 82f4e6110a71ae43f94e2654a2cae56f89bbc4b4 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Sun, 22 Sep 2019 02:20:07 +0200 Subject: [PATCH] fix: remove defer and async for now --- src/Script.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Script.ts b/src/Script.ts index aee7508..3220913 100644 --- a/src/Script.ts +++ b/src/Script.ts @@ -2,9 +2,9 @@ import { onMounted, reactive, toRefs } from '@vue/composition-api'; interface ScriptOptions { src: string; - async?: boolean; - defer?: boolean; - module?: boolean; + // async?: boolean; + // defer?: boolean; + // module?: boolean; } export function useScript(opts: ScriptOptions) { @@ -17,9 +17,9 @@ export function useScript(opts: ScriptOptions) { const promise = new Promise((resolve, reject) => { onMounted(() => { const script = document.createElement('script'); - script.async = opts.async || true; - script.async = opts.defer || true; - script.noModule = !opts.module || false; + // script.async = opts.async || true; + // script.async = opts.defer || true; + // script.noModule = !opts.module || false; script.onload = function() { state.isLoading = false; state.success = true;