Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8182 from brave/bravify-text
Browse files Browse the repository at this point in the history
Covers instances of 'GoogleChrome'
  • Loading branch information
bsclifton authored Apr 10, 2017
2 parents dadcc1c + e167953 commit 6306259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/renderer/lib/extensionsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
2 changes: 1 addition & 1 deletion js/about/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ 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

// Stylesheets
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()
Expand Down

0 comments on commit 6306259

Please sign in to comment.