Skip to content

Commit

Permalink
Fix account import type
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Oct 14, 2023
1 parent 61fa9f3 commit 0193387
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/content/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class IncognitoAccess{
class Toggle {

static password() {
this.previousElementSibling.type = this.previousElementSibling.type === 'password' ? 'text' : 'password';
const elem = this.previousElementSibling;
elem.type = elem.type === 'password' ? 'text' : 'password';
}
}
// ---------- /Toggle --------------------------------------
Expand Down Expand Up @@ -718,7 +719,7 @@ class ImportFoxyProxyAccount {
active: true,
title: '',
color: '', // random color will be set
type: 'http',
type: 'https',
hostname: item.hostname,
port: '443',
username: item.username,
Expand All @@ -732,10 +733,12 @@ class ImportFoxyProxyAccount {

const title = item.hostname.split('.')[0];
// add http port
pxy.type = 'http';
pxy.title = title + '.' + item.port[0];
pxy.port = item.port[0];
Proxies.addProxy(pxy);
// add SSL port
pxy.type = 'https';
pxy.title = title + '.' + item.ssl_port;
pxy.port = item.ssl_port;
Proxies.addProxy(pxy);
Expand Down

0 comments on commit 0193387

Please sign in to comment.