We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8ba02 commit c5ddb8bCopy full SHA for c5ddb8b
README.md
@@ -35,13 +35,21 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
35
vue: Vue
36
},
37
async getFile(url) {
38
+
39
+ // v0.7.x
40
+ const res = await fetch(url);
41
+ if ( !res.ok )
42
+ throw Object.assign(new Error(res.statusText + ' ' + url), { res });
43
+ return await res.text();
44
45
+ /* v0.8.x
46
const res = await fetch(url);
47
if ( !res.ok )
48
throw Object.assign(new Error(res.statusText + ' ' + url), { res });
49
return {
50
getContentData: asBinary => asBinary ? res.arrayBuffer() : res.text(),
51
}
52
+ */
53
54
addStyle(textContent) {
55
0 commit comments