Adding absoluteUrl handling to polyfills
This commit is contained in:
1 parent
d926ba3e06
commit
42d7ed3134
2 files changed
+12
-1
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
|
||||
export const absoluteUrl = function(path) {
|
||||
if (path) {
|
||||
// Remove the leading "/"
|
||||
path = path.replace(/^\//, '');
|
||||
}
|
||||
|
||||
return Meteor.absoluteUrl(path);
|
||||
};
|
||||
Reference in new issue
Block a user