From 9a92a6148401bf65ce16b0a181c97cee255d895c Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Mon, 13 Apr 2015 20:31:21 +0200 Subject: [PATCH] Make sure state is ignored when disabled --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 4fa1486..146a686 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -672,7 +672,7 @@ H5P.newRunnable = function (library, contentId, $attachTo, skipResize, extras) { extras.subContentId = library.subContentId; } - if (library.userDatas && library.userDatas.state) { + if (library.userDatas && library.userDatas.state && H5PIntegration.saveFreq) { extras.previousState = library.userDatas.state; }