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 d415da0fbf
commit 42d2dd5d18

View File

@ -735,6 +735,14 @@ let Cmds = {
return; 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 // Add project
let project = yield AppProjects.addHosted(location) let project = yield AppProjects.addHosted(location)