ohif-viewer/Packages/ohif-polyfill/client/lib/absoluteUrl.js
2017-04-21 09:48:33 -03:00

11 lines
222 B
JavaScript

import { Meteor } from 'meteor/meteor';
export const absoluteUrl = function(path) {
if (path) {
// Remove the leading "/"
path = path.replace(/^\//, '');
}
return Meteor.absoluteUrl(path);
};