Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yumata committed Oct 23, 2023
1 parent 17d296f commit e5fa9d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -32797,8 +32797,7 @@
check.classList.add('hide');
};

var url = this.data.url || this.data.link; //.replace(/(http:\/\/|https:\/\/)/g, Lampa.Utils.protocol())

var url = (this.data.url || this.data.link).replace(/(http:\/\/|https:\/\/)/g, window.location.protocol == 'https:' ? 'https://' : 'http://');
this.network.timeout(5000);
this.network["native"](url, function (str) {
if (/Lampa\./.test(str)) {
Expand Down Expand Up @@ -33621,7 +33620,8 @@
var email = (localStorage.getItem('account_email') || '').trim();
if (Account.logged() && email) encode = Utils$2.addUrlComponent(encode, 'email=' + encodeURIComponent(Base64.encode(email)));
encode = Utils$2.addUrlComponent(encode, 'logged=' + encodeURIComponent(Account.logged() ? 'true' : 'false'));
encode = Utils$2.addUrlComponent(encode, 'reset=' + Math.random()); //encode = encode.replace(/(http:\/\/|https:\/\/)/g, Utils.protocol())
encode = Utils$2.addUrlComponent(encode, 'reset=' + Math.random());
encode = encode.replace(/(http:\/\/|https:\/\/)/g, window.location.protocol == 'https:' ? 'https://' : 'http://');
}

return encode;
Expand Down

0 comments on commit e5fa9d3

Please sign in to comment.