mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
0e9d4e6792
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
23 lines
556 B
JavaScript
23 lines
556 B
JavaScript
/*global Ember */
|
|
|
|
var trailingHistory,
|
|
registerTrailingLocationHistory;
|
|
|
|
trailingHistory = Ember.HistoryLocation.extend({
|
|
formatURL: function () {
|
|
// jscs: disable
|
|
return this._super.apply(this, arguments).replace(/\/?$/, '/');
|
|
// jscs: enable
|
|
}
|
|
});
|
|
|
|
registerTrailingLocationHistory = {
|
|
name: 'registerTrailingLocationHistory',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('location:trailing-history', trailingHistory);
|
|
}
|
|
};
|
|
|
|
export default registerTrailingLocationHistory;
|