Files
ohif-viewer/Packages/ohif-polyfill/client/lib/absoluteUrl.js
T

10 lines
209 B
JavaScript
Raw Normal View History

2017-04-21 09:48:33 -03:00
import { Meteor } from 'meteor/meteor';
2017-09-05 20:53:20 -03:00
export default function(path) {
2017-04-21 09:48:33 -03:00
if (path) {
// Remove the leading "/"
path = path.replace(/^\//, '');
}
return Meteor.absoluteUrl(path);
2017-09-05 20:53:20 -03:00
}