Skip to content

Commit

Permalink
Merge pull request #32 from muhammadshakeel/patch-1
Browse files Browse the repository at this point in the history
Right fix
  • Loading branch information
ClaudiuCreanga authored Mar 9, 2018
2 parents beb7f20 + 154204e commit 1baebcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/frontend/web/js/limesharp_stockists.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ define([

// get the stores from admin stockists/ajax/stores
function getStores() {
var url = window.location.protocol+"//"+window.location.pathname + '/ajax/stores';
var url = window.location.protocol+"//"+window.location.hostname+window.location.pathname;
url = (url.substr(-1) != '/' ? url+'/':url)+'ajax/stores';

$.ajax({
dataType: 'json',
url: url
Expand Down

0 comments on commit 1baebcf

Please sign in to comment.