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 ed8195e commit f56fa2aCopy full SHA for f56fa2a
htmlpreview.js
@@ -89,10 +89,11 @@
89
var fetchProxy = function (url, options, i) {
90
var proxy = [
91
'https://cors-anywhere.herokuapp.com/',
92
- 'https://yacdn.org/serve/',
+ 'https://yacdn.org/proxy/',
93
'https://api.codetabs.com/v1/proxy/?quest='
94
];
95
return fetch(proxy[i] + url, options).then(function (res) {
96
+ if (!res.ok) throw new Error('Cannot load ' + url + ': ' + res.status + ' ' + res.statusText);
97
return res.text();
98
}).catch(function (error) {
99
if (i === proxy.length - 1)
0 commit comments