Commit c06bfa45 authored by Alexandre Iooss's avatar Alexandre Iooss

Fix some warning messages and comment in galene.js

parent ce0cb1ef
...@@ -104,7 +104,7 @@ function storeSettings(settings) { ...@@ -104,7 +104,7 @@ function storeSettings(settings) {
window.sessionStorage.setItem('settings', JSON.stringify(settings)); window.sessionStorage.setItem('settings', JSON.stringify(settings));
fallbackSettings = null; fallbackSettings = null;
} catch(e) { } catch(e) {
console.warn("Couldn't store password:", e); console.warn("Couldn't store settings:", e);
fallbackSettings = settings; fallbackSettings = settings;
} }
} }
...@@ -121,7 +121,7 @@ function getSettings() { ...@@ -121,7 +121,7 @@ function getSettings() {
let json = window.sessionStorage.getItem('settings'); let json = window.sessionStorage.getItem('settings');
settings = JSON.parse(json); settings = JSON.parse(json);
} catch(e) { } catch(e) {
console.warn("Couldn't retrieve password:", e); console.warn("Couldn't retrieve settings:", e);
settings = fallbackSettings; settings = fallbackSettings;
} }
return settings || {}; return settings || {};
...@@ -910,7 +910,7 @@ function Filter(stream, definition) { ...@@ -910,7 +910,7 @@ function Filter(stream, definition) {
} }
Filter.prototype.draw = function() { Filter.prototype.draw = function() {
// check framerate evecry 30 frames // check framerate every 30 frames
if((this.count % 30) === 0) { if((this.count % 30) === 0) {
let frameRate = 0; let frameRate = 0;
this.inputStream.getTracks().forEach(t => { this.inputStream.getTracks().forEach(t => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment