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 05413de commit d10555dCopy full SHA for d10555d
src/io/files.js
@@ -1141,7 +1141,10 @@ p5.prototype.httpDo = function() {
1141
err.ok = false;
1142
throw err;
1143
} else {
1144
- var fileSize = res.headers.get('content-length');
+ var fileSize = 0;
1145
+ if (type !== 'jsonp') {
1146
+ fileSize = res.headers.get('content-length');
1147
+ }
1148
if (fileSize && fileSize > 64000000) {
1149
p5._friendlyFileLoadError(7, path);
1150
}
0 commit comments