Skip to content

Commit

Permalink
Adjust styles and remove Chrome popup
Browse files Browse the repository at this point in the history
  • Loading branch information
berzniz committed Apr 10, 2020
1 parent 101b09f commit 8456f8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/js/components/options/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Options extends React.Component {
this.setState(await StorageSync.get())
}

isChrome() {
return typeof browser === "undefined"
isChrome () {
return typeof browser === 'undefined'
}

render () {
Expand All @@ -32,11 +32,11 @@ class Options extends React.Component {
<div className='text-center'>
<h1>Better Pull Request</h1>
<p>
Thanks for using Better Pull Request {this.isChrome() ? "Chrome" : "Firefox"} Extension! 🎉
Thanks for using Better Pull Request {this.isChrome() ? 'Chrome' : 'Firefox'} Extension! 🎉
</p>
<p>
If you're enjoying this extension, please <a href={this.isChrome() ? chromeStoreUrl : firefoxStoreUrl} target="_blank">rate it
on the {this.isChrome() ? "Chrome" : "Firefox"} Store</a>.
If you're enjoying this extension, please <a href={this.isChrome() ? chromeStoreUrl : firefoxStoreUrl} target='_blank'>rate it
on the {this.isChrome() ? 'Chrome' : 'Firefox'} Store</a>.
</p>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/tree/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Tree extends React.Component {

onOptions () {
let browserApi = window.chrome
if (typeof browser !== "undefined") {
if (typeof browser !== 'undefined') {
browserApi = browser
}
window.open(browserApi.runtime.getURL('options.html'))
Expand Down
3 changes: 0 additions & 3 deletions src/manifest.chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
"css": []
}
],
"browser_action": {
"default_popup": "options.html"
},
"options_page": "options.html",
"web_accessible_resources": ["options.html"],
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"default_popup": "options.html"
},
"options_ui": {
"chrome_style": true,
"chrome_style": true,
"page": "options.html"
},
"web_accessible_resources": ["options.html"],
Expand Down

0 comments on commit 8456f8c

Please sign in to comment.