Files
EdgeAdmin/web/views/@default/servers/server/settings/origins/updatePopup.js

11 lines
288 B
JavaScript
Raw Normal View History

Tea.context(function () {
this.changeAddr = function () {
if (this.serverType == "httpProxy") {
if (this.origin.addr.startsWith("http://")) {
this.origin.protocol = "http"
} else if (this.origin.addr.startsWith("https://")) {
this.origin.protocol = "https"
}
}
}
})