From 74233d7fa830b12ce2f153636b23402a21e32d3e Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Mon, 30 Sep 2019 13:24:18 +0000 Subject: [PATCH 1/2] Bump 0.0.1.38 --- .../chromium/runet-censorship-bypass/src/templates-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/templates-data.js b/extensions/chromium/runet-censorship-bypass/src/templates-data.js index 2d26456..741404a 100644 --- a/extensions/chromium/runet-censorship-bypass/src/templates-data.js +++ b/extensions/chromium/runet-censorship-bypass/src/templates-data.js @@ -10,7 +10,7 @@ const pacUrls = [ ]; const commonContext = { - version: '1.37', + version: '1.38', anticensorityPacUrls: [ ...pacUrls, ], From bc2ceed1dccf115cdfbe86c4a8d92b28e7a6f14c Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Fri, 25 Oct 2019 16:09:29 +0000 Subject: [PATCH 2/2] Fix: url may be empty, so check it --- .../pages/options/src/components/ExcEditor.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js index 42aa8d4..12fc36c 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js @@ -75,11 +75,16 @@ export default function getExcEditor(theState) { constructor(props) { super(props); + const trimmedInputValueOrSpace = + props.currentTab && + props.currentTab.url && + !props.currentTab.url.startsWith('chrome') + ? new URL(props.currentTab.url).hostname + : ''; const pacMods = props.apis.pacKitchen.getPacMods(); this.state = { - trimmedInputValueOrSpace: - props.currentTab && !props.currentTab.url.startsWith('chrome') ? new URL(props.currentTab.url).hostname : '', + trimmedInputValueOrSpace, sortedListOfOptions: this.modsToOpts(pacMods), isHostHidden: {} };