From a240e19953c94b294c07536d0a9e7faf497a923b Mon Sep 17 00:00:00 2001 From: Thomas Beverley Date: Tue, 20 Sep 2016 17:26:05 +0100 Subject: [PATCH] Added userscripts link. Version bump to 1.3.9 --- package.json | 2 +- .../ui/Settings/Accounts/AccountCustomCodeSettings.js | 11 +++++++++++ src/shared/constants.js | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a97365d..0794ec89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wmail", - "version": "1.3.8", + "version": "1.3.9", "prerelease": true, "description": "The missing desktop client for Gmail and Google Inbox", "scripts": { diff --git a/src/scenes/mailboxes/src/ui/Settings/Accounts/AccountCustomCodeSettings.js b/src/scenes/mailboxes/src/ui/Settings/Accounts/AccountCustomCodeSettings.js index aa0d286f..ae2a064e 100644 --- a/src/scenes/mailboxes/src/ui/Settings/Accounts/AccountCustomCodeSettings.js +++ b/src/scenes/mailboxes/src/ui/Settings/Accounts/AccountCustomCodeSettings.js @@ -5,6 +5,11 @@ const mailboxActions = require('../../../stores/mailbox/mailboxActions') const styles = require('../settingStyles') const shallowCompare = require('react-addons-shallow-compare') const {mailboxDispatch} = require('../../../Dispatch') +const { USER_SCRIPTS_WEB_URL } = require('shared/constants') +const Colors = require('material-ui/styles/colors') +const { + remote: {shell} +} = window.nativeRequire('electron') module.exports = React.createClass({ /* **************************************************************************/ @@ -77,6 +82,12 @@ module.exports = React.createClass({ icon={code} onTouchTap={() => this.setState({ editingCSS: false, editingJS: true })} /> +
+ { evt.preventDefault(); shell.openExternal(USER_SCRIPTS_WEB_URL) }} + href={USER_SCRIPTS_WEB_URL}>Find custom userscripts +