diff --git a/src/manifest.json b/src/manifest.json index 13db3b5..dda5de4 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Pin tabs - Tab Manager", "short_name": "Keep tabs history", - "version": "1.3.1", + "version": "1.3.3", "description": "Pin Tabs allows the user to pin one or more tabs for short periods, keep track of the expired tabs in the history and save energy", "browser_action": { "default_title": "Show the list of pinned tabs", @@ -16,23 +16,14 @@ { "matches": [""], "js": ["pages/index.js"], - "run_at": "document_end", - "exclude_matches": ["https://www.youtube.com/*"] + "run_at": "document_end" } ], - "permissions": [ - "tabs", - "activeTab", - "http://*/*", - "https://*/*", - "storage", - "alarms" - ], + "permissions": ["activeTab", "alarms"], "minimum_chrome_version": "60", "icons": { "16": "assets/list.png", "48": "assets/list.png", "128": "assets/list128.png" - }, - "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'" + } } diff --git a/src/pages/content/index.css b/src/pages/content/index.css index 9b2a3d6..79f83d9 100644 --- a/src/pages/content/index.css +++ b/src/pages/content/index.css @@ -8,7 +8,7 @@ border-radius: 100%; background-color: #33c3f0; cursor: pointer; - z-index: 99999; + z-index: 9999999; } .hidden { diff --git a/src/pages/popup/Dashboard.js b/src/pages/popup/Dashboard.js index 7f439b1..46d3501 100644 --- a/src/pages/popup/Dashboard.js +++ b/src/pages/popup/Dashboard.js @@ -5,7 +5,7 @@ import { deleteAllBookmark, deleteOneBookmark, addBookmark, - addFromButton + addFromButton, } from "../background/actions"; import "./dashboard.css"; import ListView from "./ListView.js"; @@ -21,10 +21,10 @@ class Dashboard extends React.Component { saveBookmark() { return new Promise((resolved, rejected) => { - chrome.tabs.query({ active: true, lastFocusedWindow: true }, data => { + chrome.tabs.query({ active: true, lastFocusedWindow: true }, (data) => { resolved(data); }); - }).then(link => { + }).then((link) => { if (!link[0].favIconUrl) link[0].favIconUrl = "../assets/nothing.png"; if (link[0].title.length > 10) link[0].title = truncate(link[0].title.toString(), 50); @@ -50,7 +50,7 @@ class Dashboard extends React.Component { this.props.deleteAll(); } - deleteTab = url => { + deleteTab = (url) => { this.props.deleteOne(url); return data; }; @@ -58,7 +58,7 @@ class Dashboard extends React.Component { componentDidMount() { // VERSION 1.0.2 Double check if the link has expireDate - this.props.bookmark.tabs.map(tab => { + this.props.bookmark.tabs.map((tab) => { if (tab.expiry >= this.props.settings.expireDate + Date.now()) { store.dispatch({ type: "EXPIRY", url: tab.tab[0].url }); } @@ -126,7 +126,7 @@ class Dashboard extends React.Component {
❤️ Donate @@ -150,21 +150,18 @@ class Dashboard extends React.Component { } } -const mapStateToProps = state => ({ +const mapStateToProps = (state) => ({ bookmark: state.bookmark, settings: state.settings, - animation: state.animation + animation: state.animation, }); -const mapDispatchToProps = dispatch => ({ - add: url => dispatch(addBookmark(url)), - refresh: data => dispatch(refreshBookmark(data)), +const mapDispatchToProps = (dispatch) => ({ + add: (url) => dispatch(addBookmark(url)), + refresh: (data) => dispatch(refreshBookmark(data)), deleteAll: () => dispatch(deleteAllBookmark()), - deleteOne: url => dispatch(deleteOneBookmark(url)), - addThroughButton: flag => dispatch(addFromButton(flag)) + deleteOne: (url) => dispatch(deleteOneBookmark(url)), + addThroughButton: (flag) => dispatch(addFromButton(flag)), }); -export default connect( - mapStateToProps, - mapDispatchToProps -)(Dashboard); +export default connect(mapStateToProps, mapDispatchToProps)(Dashboard);