Update adminAdapters.js

This commit is contained in:
2018-11-11 11:39:00 +08:00
parent 9e903e0495
commit 26844f6eb4

View File

@@ -411,6 +411,14 @@ function Adapters(main) {
if (isCustom) {
url = that.$installDialog.find('#install-url-link').val();
username = that.$installDialog.find('#install-url-link-username').val();
password = that.$installDialog.find('#install-url-link-password').val();
if (username) {
url = username + ":" + password + "@" + url;
}
if (url.startsWith("http") && url.endsWith(".git")) url = "git+" + url;
debug = that.$installDialog.find('#install-url-debug').prop('checked') ? ' --debug' : '';