ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 258460d9881854c20d43687426f2c1f60ce8624c
parent ede580c5f7be8c9a122da627da9420839fc7934e
Author: Ben Fletcher <ben@sitetour.co>
Date:   Sat, 20 Feb 2016 23:54:52 +0000

Tell any CSS tooling (such as Material UI) to use all vendor prefixes if the user agent is not known

Diffstat:
Msrc/server.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/server.js b/src/server.js @@ -20,6 +20,13 @@ import { port } from './config'; const server = global.server = express(); // +// Tell any CSS tooling (such as Material UI) to use all vendor prefixes if the +// user agent is not known. +// ----------------------------------------------------------------------------- +global.navigator = global.navigator || {}; +global.navigator.userAgent = global.navigator.userAgent || 'all'; + +// // Register Node.js middleware // ----------------------------------------------------------------------------- server.use(express.static(path.join(__dirname, 'public')));