mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-10 19:46:34 +03:00
Fix type, restyle
This commit is contained in:
parent
040d598d67
commit
092c999c59
|
@ -103,7 +103,7 @@ export default function getProxyEditor(theState) {
|
|||
right: 0;
|
||||
}
|
||||
table.editor .add {
|
||||
font-weight: 900;
|
||||
font-weight: 900;
|
||||
}
|
||||
table.editor .export {
|
||||
/*padding-right: 2px;*/
|
||||
|
@ -160,7 +160,7 @@ export default function getProxyEditor(theState) {
|
|||
};
|
||||
const splitBySemi = (proxyString) => proxyString.replace(/#.*$/mg, '').trim().split(/\s*;\s*/g).filter((s) => s);
|
||||
const joinBySemi = (strs) => strs.join(';\n') + ';';
|
||||
const normilizeProxyString = (str) => joinBySemi(splitBySemi(str));
|
||||
const normalizeProxyString = (str) => joinBySemi(splitBySemi(str));
|
||||
|
||||
const PROXY_TYPE_LABEL_PAIRS = [['PROXY', 'PROXY/HTTP'],['HTTPS'],['SOCKS4'],['SOCKS5'],['SOCKS']];
|
||||
|
||||
|
@ -437,7 +437,7 @@ export default function getProxyEditor(theState) {
|
|||
handleTextareaChange(that, event) {
|
||||
|
||||
that.setState({
|
||||
stashedExports: normilizeProxyString(event.target.value),
|
||||
stashedExports: normalizeProxyString(event.target.value),
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user