From 357029f0d073f5ff2df02e4d21e512f760417d39 Mon Sep 17 00:00:00 2001 From: Jose Aureliano Date: Thu, 10 Mar 2016 11:07:20 -0300 Subject: [PATCH] fix bug on slide presentation in chrome --- core/deck.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deck.core.js b/core/deck.core.js index 39796273..af00733e 100644 --- a/core/deck.core.js +++ b/core/deck.core.js @@ -342,7 +342,7 @@ that use the API provided by core. removeContainerHashClass($.deck('getSlide', from).attr('id')); addContainerHashClass($.deck('getSlide', to).attr('id')); if (Modernizr.history) { - window.history.replaceState({}, "", hashPath); + try{window.history.replaceState({}, "", hashPath);}catch(err){if (!err.message.startsWith("Failed to execute 'replaceState' on 'History'")){throw new Error(err.message);}} } };