Skip to content

Commit

Permalink
Version 1.3
Browse files Browse the repository at this point in the history
• Options page is now correctly styled
• Updated browser APIs to latest versions
  • Loading branch information
Sukigu committed Nov 12, 2017
1 parent 8da9abd commit c7cd802
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},

"extensionDescription": {
"message": "Search for related images or in different sizes on Google by right clicking on an image."
"message": "Search for related or different-sized images on Google by right clicking on an image."
},

"searchImage": {
Expand Down
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';

browser.contextMenus.create({
browser.menus.create({
id: 'googleimagesearch-action',
title: browser.i18n.getMessage('searchImage'),
contexts: ['image']
});

browser.contextMenus.onClicked.addListener(function(info, tab) {
browser.menus.onClicked.addListener(function(info, tab) {
if (info.menuItemId === 'googleimagesearch-action') {
var getPreference = browser.storage.sync.get({
openInBackground: true
Expand Down
7 changes: 4 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.2",
"version": "1.3",

"description": "__MSG_extensionDescription__",

Expand All @@ -10,7 +10,7 @@
},

"permissions": [
"contextMenus",
"menus",
"storage"
],

Expand All @@ -20,7 +20,8 @@
},

"options_ui": {
"page": "options.html"
"page": "options.html",
"browser_style": true
},

"default_locale": "en",
Expand Down
6 changes: 3 additions & 3 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8">
</head>

<body>
<input type="checkbox" id="openInBackground" />
<label for="openInBackground" id="openInBackgroundLabel"></label>
<body class="browser-style">
<input id="openInBackground" type="checkbox" />
<label id="openInBackgroundLabel" for="openInBackground"></label>

<script src="options.js"></script>
</body>
Expand Down

0 comments on commit c7cd802

Please sign in to comment.