Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Catch security exception when running in chrome from filesystem
  • Loading branch information
untoldwind committed Feb 5, 2016
commit 611c66cf343f547956caef6c9a3a29e1d7c88142
5 changes: 4 additions & 1 deletion core/deck.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
}
};

Expand Down