summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-04-21 12:30:57 -0400
committerJules Laplace <jules@okfoc.us>2017-04-21 12:30:57 -0400
commit5028ad81845308f3b1954dcc1fde664077fa0fa9 (patch)
tree2e999beb6df2b3d8c4ccf70aa5a460c2374adb4b /client/index.js
parent4c8c80162a60231b0254abcce8a336447c3a3416 (diff)
scaffolding
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/client/index.js b/client/index.js
deleted file mode 100644
index 61e61ad..0000000
--- a/client/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-
-import React from 'react'
-import ReactDOM from 'react-dom';
-import App from './components/App.jsx';
-
-const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))
-const isIpad = (navigator.userAgent.match(/iPad/i))
-const isAndroid = (navigator.userAgent.match(/Android/i))
-const isMobile = isIphone || isIpad || isAndroid
-const isDesktop = ! isMobile
-
-document.body.classList.add(isDesktop ? 'desktop' : 'mobile')
-
-ReactDOM.render(<App />, document.getElementById('container'));
-