Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectSoft-STUDIONIONS committed Aug 17, 2024
1 parent c965769 commit b33730a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
;(function($, SCOPE) {
var currentSrc = new URL((document.currentScript || document.scripts[document.scripts.length - 1]).src);
let currentSrc = new URL((document.currentScript || document.scripts[document.scripts.length - 1]).src);
const pathname = currentSrc.pathname.replace(/\/js\/.+$/, "/");
const config = typeof window.config == 'function' ? window.config() : {},
price_mini = Number(config.mini) >= 0 ? Number(config.mini) : 0,
price_area = Number(config.area) >= 0 ? Number(config.area) : 0,
Expand Down Expand Up @@ -638,5 +639,5 @@
//.load
console.log(e);
});
console.log(currentSrc.pathname);
console.log(pathname);
})(jQuery, _);

0 comments on commit b33730a

Please sign in to comment.