Sha256: e2d533aae341bdb2e6a368a084a108f6a40c4422bdf6bc8ee5457dbdc197024b
Contents?: true
Size: 580 Bytes
Versions: 6
Compression:
Stored size: 580 Bytes
Contents
window.mosaico = window.mosaico || {}; window.mosaico.utilities = { urlJoin: function(origSegments) { var segments = []; for (var i = 0; i < origSegments.length; i ++) { if (origSegments[i] == undefined) { continue; } var match = origSegments[i].match(/^\/?(.*?)\/?$/) segments.push(match[1]); } var joined = segments.join('/'); // handle absolute URLs return /^\//.test(origSegments[0]) ? '/' + joined : joined; }, authenticityToken: function() { return $('meta[name="csrf-token"]').attr('content'); } };
Version data entries
6 entries across 6 versions & 1 rubygems