Skip to content

Commit 3e35e2d

Browse files
committed
Undid updates
1 parent c320152 commit 3e35e2d

9 files changed

+9
-9
lines changed

dist/smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
var setHistory = function (options) {
298298

299299
// Make sure this should run
300-
if (!history.replaceState || history.state) return;
300+
if (!history.replaceState || !options.updateURL || history.state) return;
301301

302302
// Get the hash to use
303303
var hash = window.location.hash;

dist/smooth-scroll.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/smooth-scroll.polyfills.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ if (window.Element && !Element.prototype.closest) {
367367
var setHistory = function (options) {
368368

369369
// Make sure this should run
370-
if (!history.replaceState || history.state) return;
370+
if (!history.replaceState || !options.updateURL || history.state) return;
371371

372372
// Get the hash to use
373373
var hash = window.location.hash;

0 commit comments

Comments
 (0)