diff options
author | Sam Potts <sam@potts.es> | 2018-06-18 22:01:56 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-06-18 22:01:56 +1000 |
commit | 8584f6a1db0eecff8ac2c8c332a837e8a309fbf9 (patch) | |
tree | 5cd29b238ddad4b291fea50dbda31fba326563c6 /src/js/utils/fetch.js | |
parent | 08df96a149778a0140aecd9f41b4cf88c02c468a (diff) | |
download | plyr-8584f6a1db0eecff8ac2c8c332a837e8a309fbf9.tar.lz plyr-8584f6a1db0eecff8ac2c8c332a837e8a309fbf9.tar.xz plyr-8584f6a1db0eecff8ac2c8c332a837e8a309fbf9.zip |
v3.3.14
Diffstat (limited to 'src/js/utils/fetch.js')
-rw-r--r-- | src/js/utils/fetch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils/fetch.js b/src/js/utils/fetch.js index 1e506cd0..ee33ea7c 100644 --- a/src/js/utils/fetch.js +++ b/src/js/utils/fetch.js @@ -26,7 +26,7 @@ export default function fetch(url, responseType = 'text') { }); request.addEventListener('error', () => { - throw new Error(request.statusText); + throw new Error(request.status); }); request.open('GET', url, true); |