mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-10 19:46:34 +03:00
Restyle, fix old update bug
This commit is contained in:
parent
98cbd5fd02
commit
56a0daf635
|
@ -526,7 +526,7 @@
|
|||
// UPDATE & MIGRATION
|
||||
console.log('Updating from ', oldStorage.version, 'to', antiCensorRu.version);
|
||||
const key = antiCensorRu._currentPacProviderKey;
|
||||
if (oldStorage.version === ' 0.0.1.2') {
|
||||
if (oldStorage.version === '0.0.1.2') {
|
||||
if (key !== null && key !== 'onlyOwnSites') {
|
||||
antiCensorRu._currentPacProviderKey = 'Антицензорити';
|
||||
}
|
||||
|
|
|
@ -158,7 +158,12 @@ export default function getProxyEditor(theState) {
|
|||
return true;
|
||||
|
||||
};
|
||||
const splitBySemi = (proxyString) => proxyString.replace(/#.*$/mg, '').trim().split(/\s*;\s*/g).filter((s) => s);
|
||||
const splitBySemi = (proxyString) => proxyString
|
||||
.replace(/#.*$/mg, '')
|
||||
.trim()
|
||||
.split(/\s*;\s*/g)
|
||||
.filter((s) => s);
|
||||
|
||||
const joinBySemi = (strs) => strs.join(';\n') + ';';
|
||||
const normalizeProxyString = (str) => joinBySemi(splitBySemi(str));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user