Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
small fix to get rid of some // urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanramage committed Sep 6, 2012
1 parent a5c9a5e commit 8cf3805
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ exports.addCategories = function () {
}
});

var baseURL = utils.getBaseURL(window.location);
if (baseURL[baseURL.length - 1] !== '/') baseURL += '/';


$('#categories').replaceWith(
templates['category_list.html']({
categories: categories,
total_apps: total_apps,
current_category: current_category,
baseURL : utils.getBaseURL(window.location) + '/'
baseURL : baseURL
})
);

Expand Down

0 comments on commit 8cf3805

Please sign in to comment.