diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/App.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/App.js index bd38b45..f93133c 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/App.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/App.js @@ -20,10 +20,9 @@ export default function getApp(theState) { const hash = window.location.hash.substr(1); const hashParams = new URLSearchParams(hash); - console.log('GOT from', hash, hashParams.toString()); this.state = { - status: hashParams.get('status') || 'Загрузка...', + status: hashParams.get('status') || 'Хорошего настроения вам!', ifInputsDisabled: false, hashParams, }; diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/Main.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/Main.js index b018c7b..88a0906 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/Main.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/Main.js @@ -21,8 +21,6 @@ export default function getMain(theState) { const ApplyMods = getApplyMods(theState); const Notifications = getNotifications(theState); - //const addChecks = (arr) => arr.map( (conf) => Object.assign(conf, {ifChecked: Boolean(conf.value)}) ); - const checksName = 'pacMods'; return class Main extends Component { diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js index 92dd30b..f3d7141 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/PacChooser.js @@ -60,6 +60,14 @@ export default function getPacChooser(theState) { chosenPacName: 'none', }; + this.updatePac = function updatePac() { + props.funs.conduct( + 'Обновляем...', + (cb) => props.apis.antiCensorRu.syncWithPacProviderAsync(cb), + 'Обновлено.' + ); + }; + } getCurrentProviderId() { @@ -103,14 +111,6 @@ export default function getPacChooser(theState) { render(props) { - const updatePac = function updatePac() { - props.funs.conduct( - 'Обновляем...', - (cb) => props.apis.antiCensorRu.syncWithPacProviderAsync(cb), - 'Обновлено.' - ); - }; - const iddyToCheck = this.getCurrentProviderId(); return (