mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1043331 - add http:// to hosted app location if missing. r=jryans
This commit is contained in:
parent
d415da0fbf
commit
42d2dd5d18
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user