From 9fb911a3af93f0e931e6671e3e0a8fdf5257106b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20K=C3=BC=C3=A7=C3=BCky=C4=B1lmaz?= Date: Wed, 9 Mar 2016 11:36:04 +0200 Subject: [PATCH] fix(core): fix page starting number --- src/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index 25c14ee..fc052b9 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -62,7 +62,7 @@ const onPlayerReady = (player, options) => { options.perPageInMinutes = options.perPageInMinutes * 60; // page is natural number convert it to integer - options.perPage = options.perPage - 1; + options.page = options.page - 1; if (options.start > 0) { offsetStart = options.start;