diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-10 11:49:00 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-10 11:49:00 +0000 |
| commit | a85a8cc4b513e701ed97a5427fc9746f42040a53 (patch) | |
| tree | 0df988a8b2bd2d97ce57e160f45ab41b86b35999 | |
| parent | e0cb0faf042535875b9cb8466cfa82c9a3527426 (diff) | |
| download | mullvadvpn-a85a8cc4b513e701ed97a5427fc9746f42040a53.tar.xz mullvadvpn-a85a8cc4b513e701ed97a5427fc9746f42040a53.zip | |
Disable smart pinch
| -rw-r--r-- | app/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/app.js b/app/app.js index 69c74398cd..d92e5e8fa8 100644 --- a/app/app.js +++ b/app/app.js @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; -import { remote } from 'electron'; +import { remote, webFrame } from 'electron'; import path from 'path'; import routes from './routes'; import configureStore from './store'; @@ -17,6 +17,9 @@ const store = configureStore(initialState); const routerHistory = syncHistoryWithStore(hashHistory, store); const rootElement = document.querySelector(document.currentScript.getAttribute('data-container')); +// disable smart pinch. +webFrame.setVisualZoomLevelLimits(1, 1); + ReactDOM.render( <div> <Provider store={store}> |
