merge package.json

This commit is contained in:
Matthew Hodgson 2017-01-16 00:20:18 +00:00
commit 8b38a326cb
10 changed files with 128 additions and 27 deletions

View file

@ -127,4 +127,8 @@ export default class ElectronPlatform extends VectorBasePlatform {
getDefaultDeviceDisplayName() {
return "Riot Desktop on " + platformFriendlyName();
}
screenCaptureErrorString() {
return null;
}
}

View file

@ -196,4 +196,12 @@ export default class WebPlatform extends VectorBasePlatform {
return app_name + " via " + ua.getBrowser().name +
" on " + ua.getOS().name;
}
screenCaptureErrorString() {
// it won't work at all if you're not on HTTPS so whine whine whine
if (!global.window || global.window.location.protocol !== "https:") {
return "You need to be using HTTPS to place a screen-sharing call.";
}
return null;
}
}