diff options
author | Sam Potts <sam@potts.es> | 2020-01-22 11:30:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 11:30:19 +0000 |
commit | 9fe03c74746c01b57b6c26ec18539ad0a835bca5 (patch) | |
tree | 3edb60c2c513059ff28a9f77f0b61982d2a5e8dd | |
parent | b6da2702a2bb11da63009749954efc3dc2ba0942 (diff) | |
parent | c3f10e7df3e77c3cf8ad3165ad881bcd11a9b7e3 (diff) | |
download | plyr-9fe03c74746c01b57b6c26ec18539ad0a835bca5.tar.lz plyr-9fe03c74746c01b57b6c26ec18539ad0a835bca5.tar.xz plyr-9fe03c74746c01b57b6c26ec18539ad0a835bca5.zip |
Merge pull request #1655 from laukstein/patch-1
Uncaught RangeError: Maximum call stack size exceeded
-rw-r--r-- | readme.md | 1 | ||||
-rw-r--r-- | src/js/utils/time.js | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -686,6 +686,7 @@ Some awesome folks have made plugins for CMSs and Components for JavaScript fram | Vue | Gabe Dunn ([@redxtech](https://github.com/redxtech)) | [https://github.com/redxtech/vue-plyr](https://github.com/redxtech/vue-plyr) | | Neos | Jon Uhlmann ([@jonnitto](https://github.com/jonnitto)) | [https://packagist.org/packages/jonnitto/plyr](https://packagist.org/packages/jonnitto/plyr) | | Kirby | Dominik Pschenitschni ([@dpschen](https://github.com/dpschen)) | [https://github.com/dpschen/kirby-plyrtag](https://github.com/dpschen/kirby-plyrtag) | +| REDAXO | FriendsOfRedaxo / skerbis ([@skerbis](https://friendsofredaxo.github.io)) | [https://github.com/FriendsOfREDAXO/plyr](https://github.com/FriendsOfREDAXO/plyr) | # Issues diff --git a/src/js/utils/time.js b/src/js/utils/time.js index ffca88b2..17228de5 100644 --- a/src/js/utils/time.js +++ b/src/js/utils/time.js @@ -13,7 +13,7 @@ export const getSeconds = value => Math.trunc(value % 60, 10); export function formatTime(time = 0, displayHours = false, inverted = false) { // Bail if the value isn't a number if (!is.number(time)) { - return formatTime(null, displayHours, inverted); + return formatTime(undefined, displayHours, inverted); } // Format time component to add leading zero |