File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,19 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
36
36
},
37
37
async getFile (url ) {
38
38
39
- // v0.7.x
40
39
const res = await fetch (url);
41
40
if ( ! res .ok )
42
41
throw Object .assign (new Error (res .statusText + ' ' + url), { res });
43
- return await res .text ();
42
+ return {
43
+ getContentData : asBinary => asBinary ? res .arrayBuffer () : res .text (),
44
+ }
45
+
44
46
45
- /* v0.8.x
47
+ /* v0.7.x
46
48
const res = await fetch(url);
47
49
if ( !res.ok )
48
50
throw Object.assign(new Error(res.statusText + ' ' + url), { res });
49
- return {
50
- getContentData: asBinary => asBinary ? res.arrayBuffer() : res.text(),
51
- }
51
+ return await res.text();
52
52
*/
53
53
},
54
54
addStyle (textContent ) {
You can’t perform that action at this time.
0 commit comments