Skip to content

Commit

Permalink
Merge pull request #457 from Kitware/browser-check
Browse files Browse the repository at this point in the history
Notify on non-chrome browser
  • Loading branch information
jeffbaumes committed Oct 21, 2016
2 parents 3d530ec + 2ada324 commit 0bd7ae5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/resonantlab/mainPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Backbone from 'backbone';
import d3 from 'd3';
import is from 'is_js';

import Router from './Router';
import User from './models/User';
Expand Down Expand Up @@ -89,6 +90,10 @@ let MainPage = Backbone.View.extend({
this.overlay.render();
this.helpLayer.render();
this.notificationLayer.render();

if (!is.chrome()) {
this.notificationLayer.displayNotification('Warning: This application works best in Chrome. Functionality may be limited in this browser.');
}
},
generateFilters: function () {
let svg = d3.select('#SvgFilters');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"datalib": "^1.7.3",
"font-awesome": "^4.4.0",
"font-awesome-webpack": "^0.0.4",
"is_js": "^0.9.0",
"jquery": "^2.2.0",
"jquery-deparam": "^0.5.2",
"underscore": "^1.8.3",
Expand Down

0 comments on commit 0bd7ae5

Please sign in to comment.