ohif-viewer/Packages/ohif-polyfill/client/lib/absoluteUrl.js
2017-09-05 20:53:20 -03:00

11 lines
209 B
JavaScript

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