Skip to content

Commit

Permalink
Version 1.0.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Dec 20, 2017
1 parent 655a40c commit 61600a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lg-hash",
"version": "1.0.3",
"version": "1.0.4",
"description": "History(Hash) module for lightgallery.",
"main": [
"dist/lg-hash.min.js"
Expand Down
4 changes: 2 additions & 2 deletions dist/lg-hash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lg-hash - v1.0.3 - 2017-10-19
/*! lg-hash - v1.0.4 - 2017-12-20
* http://sachinchoolur.github.io/lightGallery
* Copyright (c) 2017 Sachin N; Licensed GPLv3 */

Expand Down Expand Up @@ -47,7 +47,7 @@
// Change hash value on after each slide transition
_this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
if (history.replaceState) {
history.replaceState(null, null, window.location.pathname + '#lg=' + _this.core.s.galleryId + '&slide=' + index);
history.replaceState(null, null, window.location.pathname + window.location.search + '#lg=' + _this.core.s.galleryId + '&slide=' + index);
} else {
window.location.hash = 'lg=' + _this.core.s.galleryId + '&slide=' + index;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/lg-hash.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lg-hash",
"version": "1.0.3",
"version": "1.0.4",
"description": "History(Hash) module for lightgallery.",
"keywords": [
"gallery",
Expand Down

0 comments on commit 61600a6

Please sign in to comment.