Bug 1043331 - add http:// to hosted app location if missing. r=jryans

This commit is contained in:
Paul Rouget 2014-07-25 13:58:51 +02:00
parent 295a3b1ef4
commit bbdca11224

View File

@ -735,6 +735,14 @@ let Cmds = {
return;
}
// Clean location string and add "http://" if missing
location = location.trim();
try { // Will fail if no scheme
Services.io.extractScheme(location);
} catch(e) {
location = "http://" + location;
}
// Add project
let project = yield AppProjects.addHosted(location)