aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-10-24 22:39:10 +1100
committerGitHub <noreply@github.com>2018-10-24 22:39:10 +1100
commitb6175b1ca903640cb44f62e29cc10d77fc3655be (patch)
tree6ce4fec55e18f09024f210f6a4c8cc1418b6aa11 /src/js/utils
parenta86bbae85145a22d0ed7f259fe86fe82b86dd7ff (diff)
parentaa20ebaa9c38363c0d1720bbb6c3c37eef630393 (diff)
downloadplyr-b6175b1ca903640cb44f62e29cc10d77fc3655be.tar.lz
plyr-b6175b1ca903640cb44f62e29cc10d77fc3655be.tar.xz
plyr-b6175b1ca903640cb44f62e29cc10d77fc3655be.zip
Merge branch 'develop' into fix-html5-quality-settings
Diffstat (limited to 'src/js/utils')
-rw-r--r--src/js/utils/is.js5
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://')) {