mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1043331 - add http:// to hosted app location if missing. r=jryans
This commit is contained in:
parent
295a3b1ef4
commit
bbdca11224
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user