From c17a8079348f3d65b89651104461c4a14376133d Mon Sep 17 00:00:00 2001 From: David Beuchert Date: Mon, 2 Nov 2015 12:03:43 +0100 Subject: [PATCH] use array access as default is a reserved keyword --- lib/videojs-resolution-switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index 0da2462..808310a 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -231,7 +231,7 @@ * @returns {Object} {res: string, sources: []} */ function chooseSrc(groupedSrc, src){ - var selectedRes = settings.default; + var selectedRes = settings['default']; // use array access as default is a reserved keyword var selectedLabel = ''; if (selectedRes === 'high') { selectedRes = src[0].res;