From e1679533c51bfcf81471263507356699f2a568d2 Mon Sep 17 00:00:00 2001 From: Jonathan Sampson Date: Mon, 10 Apr 2017 09:07:11 -0500 Subject: [PATCH] Covers instances of 'GoogleChrome' --- app/renderer/lib/extensionsUtil.js | 4 +++- js/about/extensions.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/renderer/lib/extensionsUtil.js b/app/renderer/lib/extensionsUtil.js index d7185babf95..431e8f7e8c3 100644 --- a/app/renderer/lib/extensionsUtil.js +++ b/app/renderer/lib/extensionsUtil.js @@ -158,4 +158,6 @@ module.exports.isPasswordManager = (extensionId) => { * @param {String} text - The text to check against * @returns {String} Text with replaced string */ -module.exports.bravifyText = (text) => text && text.replace(/Chrome|Google Chrome/g, 'Brave') +module.exports.bravifyText = (text) => { + return text && text.replace(/Chrome|Google ?Chrome/g, 'Brave') +} diff --git a/js/about/extensions.js b/js/about/extensions.js index c4e8ce84957..c1540d2a68f 100644 --- a/js/about/extensions.js +++ b/js/about/extensions.js @@ -12,6 +12,7 @@ const aboutActions = require('./aboutActions') const {StyleSheet, css} = require('aphrodite/no-important') const globalStyles = require('../../app/renderer/components/styles/global') const commonStyles = require('../../app/renderer/components/styles/commonStyles') +const { bravifyText } = require('../../app/renderer/lib/extensionsUtil') const ipc = window.chrome.ipcRenderer @@ -19,7 +20,6 @@ const ipc = window.chrome.ipcRenderer require('../../less/about/common.less') require('../../node_modules/font-awesome/css/font-awesome.css') -const bravifyText = (text) => text.replace(/Google Chrome/g, 'Brave') class ExtensionItem extends ImmutableComponent { constructor () { super()