diff options
author | Sam Potts <sam@potts.es> | 2018-10-24 22:31:35 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-10-24 22:31:35 +1100 |
commit | 03c9b53232aeab78a7c592e1bcf387312f77a569 (patch) | |
tree | fc845c092d209e7c78fb0d412e738dc39d278ef1 /src/js/utils/is.js | |
parent | ebaded66b4c1f05b7b323b968fbe506002c8f019 (diff) | |
download | plyr-03c9b53232aeab78a7c592e1bcf387312f77a569.tar.lz plyr-03c9b53232aeab78a7c592e1bcf387312f77a569.tar.xz plyr-03c9b53232aeab78a7c592e1bcf387312f77a569.zip |
Allow custom download URL (for streaming, etc)
Diffstat (limited to 'src/js/utils/is.js')
-rw-r--r-- | src/js/utils/is.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/utils/is.js b/src/js/utils/is.js index 2952d486..ab28f2ab 100644 --- a/src/js/utils/is.js +++ b/src/js/utils/is.js @@ -31,6 +31,11 @@ const isUrl = input => { return true; } + // Must be string from here + if (!isString(input)) { + return false; + } + // Add the protocol if required let string = input; if (!input.startsWith('http://') || !input.startsWith('https://')) { |