Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
Fix #1
• Fix English typo
• Default items are email and facebook
  • Loading branch information
Devenet committed Oct 5, 2017
1 parent 4daa3d5 commit 5622eb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extension_description": {
"message": "Simple share your current tab by email, to your social networks or your Shaarli!",
"message": "Simply share your current tab by email, to your social networks or your Shaarli!",
"description": "Extension description."
},
"browser_action_title": {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Simple Share",
"short_name": "Share",

"version": "1.0.0",
"version": "1.1.0",

"icons": {
"16": "images/icon-16.png",
Expand Down
2 changes: 1 addition & 1 deletion scripts/bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var items = { email:1, facebook:0, shaarli:0, twitter:1 };
var items = { email:1, facebook:1, shaarli:0, twitter:0 };
items = !localStorage['settings.share.items'] ? items : JSON.parse(localStorage['settings.share.items']);
var suggests = [];
for (var item in items) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/share.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var items = { email:1, facebook:0, shaarli:0, twitter:1 };
var items = { email:1, facebook:1, shaarli:0, twitter:0 };
items = !localStorage['settings.share.items'] ? items : JSON.parse(localStorage['settings.share.items']);

var links = document.querySelectorAll('.i18n-share a');
Expand All @@ -15,7 +15,7 @@ for (var i=0, l=links.length; i<l; i++) {
event.preventDefault();

method = event.path[0].hash.substring(1);
chrome.tabs.query({ active: true }, function (tabs) {
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
var result = buildShareURL(method, tabs[0].url, tabs[0].title);
var window_openable = method != 'email';
if (result) {
Expand Down

0 comments on commit 5622eb4

Please sign in to comment.