From 611c66cf343f547956caef6c9a3a29e1d7c88142 Mon Sep 17 00:00:00 2001 From: Untoldwind Date: Fri, 5 Feb 2016 09:06:08 +0100 Subject: [PATCH] Catch security exception when running in chrome from filesystem --- core/deck.core.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/deck.core.js b/core/deck.core.js index 39796273..3ea4c86d 100644 --- a/core/deck.core.js +++ b/core/deck.core.js @@ -342,7 +342,10 @@ 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 (exception) { + } } };