Simplify CC code with new softRefreshView function

This new function automatically clicks the Community Console logo to
soft refresh the current view. It will be used in other parts of the
extension in the future, so this commits refactors the code so the logic
is found in a unique place in the codebase.

Bug: twpowertools:153
Change-Id: I2b061123021e5026e95793d9a77730c2a1eb70ae
diff --git a/src/contentScripts/communityConsole/autoRefresh.js b/src/contentScripts/communityConsole/autoRefresh.js
index e5dc8c8..1cbee9f 100644
--- a/src/contentScripts/communityConsole/autoRefresh.js
+++ b/src/contentScripts/communityConsole/autoRefresh.js
@@ -5,7 +5,7 @@
 import {isOptionEnabled} from '../../common/optionsUtils.js';
 import {createPlainTooltip} from '../../common/tooltip.js';
 
-import {createExtBadge} from './utils/common.js';
+import {createExtBadge, softRefreshView} from './utils/common.js';
 
 var authuser = getAuthUser();
 
@@ -135,7 +135,7 @@
 
     action.addEventListener('click', e => {
       this.hideUpdatePrompt();
-      document.querySelector('.app-title-button').click();
+      softRefreshView();
     });
 
     content.append(badge, message, action);