Skip to content

Commit

Permalink
ES6: Migrate 'view_model'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Herdmann committed May 16, 2017
1 parent ef452aa commit db7c798
Show file tree
Hide file tree
Showing 31 changed files with 5,243 additions and 3,709 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ globals:
OpenGraphMocks: true
pako: true
payload: true
PhoneFormat: true
platform: true
poster: true
Proteus: true
Expand Down
10 changes: 2 additions & 8 deletions app/script/util/Environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ window.z.util = z.util || {};
return this.is_chrome() || this.is_firefox() || this.is_opera();
},
supports_media_devices: function() {
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
return true;
}
return false;
return navigator.mediaDevices && navigator.mediaDevices.getUserMedia;
},
supports_notifications: function() {
if (window.Notification === undefined) {
Expand All @@ -92,10 +89,7 @@ window.z.util = z.util || {};
if (window.Notification.requestPermission === undefined) {
return false;
}
if (document.visibilityState === undefined) {
return false;
}
return true;
return document.visibilityState !== undefined;
},
supports_screen_sharing: function() {
if (window.desktopCapturer) {
Expand Down
Loading

0 comments on commit db7c798

Please sign in to comment.