Skip to content

Commit

Permalink
Replace colons with dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashko Stubailo committed Aug 19, 2014
1 parent d28c01b commit 2fdfc1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tools/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ _.extend(File.prototype, {
self.targetPath = relPath;
else
self.targetPath = path.join('app', relPath);

self.targetPath = self.targetPath.replace(/:/g, "-");
},

// Set a source map for this File. sourceMap is given as a string.
Expand Down Expand Up @@ -904,6 +906,8 @@ _.extend(ClientTarget.prototype, {
eachResource(function (file, type) {
var fileContents = file.contents();

file.url = file.url.replace(/:/g, "-");

var manifestItem = {
path: file.targetPath,
where: "client",
Expand Down
6 changes: 2 additions & 4 deletions tools/client/meteor_cordova_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
scriptTag.src = url;
scriptTag.onload = launchNext;

console.log(url);

document.getElementsByTagName('head')[0].appendChild(scriptTag);
};

Expand Down Expand Up @@ -147,10 +149,6 @@
};

document.addEventListener("deviceready", function () {
// set the url to /
if (history) {
history.pushState({}, "Application", "/");
}
var localPathPrefix = cordova.file.applicationStorageDirectory +
'Documents/meteor/';
if (__meteor_runtime_config__.cleanCache) {
Expand Down

0 comments on commit 2fdfc1f

Please sign in to comment.