diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-23 22:09:48 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-23 23:06:59 +0200 |
| commit | 02e1d75d0d2dcef4e16e9ab6bff3415bd9b3d05d (patch) | |
| tree | 111e3d453b302c5d85dc3fa84d0935aabc87d8c4 /app/components | |
| parent | e187eac4ec60e44b169263ea39730c2f9bebf150 (diff) | |
| download | mullvadvpn-02e1d75d0d2dcef4e16e9ab6bff3415bd9b3d05d.tar.xz mullvadvpn-02e1d75d0d2dcef4e16e9ab6bff3415bd9b3d05d.zip | |
Make sure to apply the platform window mask only on mac
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/PlatformWindow.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/components/PlatformWindow.js b/app/components/PlatformWindow.js index e54ce969e0..10b689eb42 100644 --- a/app/components/PlatformWindow.js +++ b/app/components/PlatformWindow.js @@ -2,14 +2,16 @@ import * as React from 'react'; import { Component, View, Styles } from 'reactxp'; -const platformWindowStyle = Styles.createViewStyle({ - WebkitMask: ` - url(./assets/images/app-triangle.svg) 50% 0% no-repeat, - url(./assets/images/app-header-backdrop.svg) no-repeat`, -}); +const styles = { + darwin: Styles.createViewStyle({ + WebkitMask: ` + url(./assets/images/app-triangle.svg) 50% 0% no-repeat, + url(./assets/images/app-header-backdrop.svg) no-repeat`, + }), +}; export default class PlatformWindow extends Component { render() { - return <View style={platformWindowStyle}>{this.props.children}</View>; + return <View style={styles[process.platform]}>{this.props.children}</View>; } } |
