Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1892' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
manzurahammed committed Feb 2, 2022
2 parents 781bafc + 11470b1 commit b59d53b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/front-end/js/view/general.js

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

2 changes: 1 addition & 1 deletion assets/front-end/js/view/general.min.js

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

5 changes: 4 additions & 1 deletion src/js/view/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ jQuery(window).on("elementor/frontend/init", function () {
(function ($) {
$(document).on('click', 'a', function (e) {
var hashURL = $(this).attr('href'),
isStartWithHash = hashURL.startsWith('#');
isStartWithHash;

hashURL = hashURL === undefined ? '' : hashURL;
isStartWithHash = hashURL.startsWith('#');

if (!isStartWithHash) {
hashURL = hashURL.replace(localize.page_permalink, '');
Expand Down

0 comments on commit b59d53b

Please sign in to comment.