Commit eeb53984 authored by Boris Kocherov's avatar Boris Kocherov

change url only from http: to https:

parent 9c5992d8
......@@ -254,7 +254,7 @@
url = mapped_url;
}
protocol = url.protocol;
if (protocol === "http:" || protocol === "https:") {
if (protocol === "http:") {
if (window.location.protocol !== protocol) {
// try change url protocol to https
url = new URL(url.toString().replace(protocol + "//", window.location.protocol + "//"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment