add new BasePlatform method, Analytics fun on the Webpack train

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/4056/head
Michael Telatynski 5 years ago
parent 8a59acb5c3
commit e991461e8d
  1. 4
      src/vector/platform/ElectronPlatform.js
  2. 4
      src/vector/platform/VectorBasePlatform.js
  3. 4
      src/vector/platform/WebPlatform.js

@ -67,6 +67,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
dis.register(_onAction);
}
getHumanReadableName() {
return 'Electron Platform';
}
setNotificationCount(count: number) {
if (this.notificationCount === count) return;
super.setNotificationCount(count);

@ -35,6 +35,10 @@ export default class VectorBasePlatform extends BasePlatform {
this._updateFavicon();
}
getHumanReadableName() {
return 'Vector Base Platform';
}
_updateFavicon() {
try {
// This needs to be in in a try block as it will throw

@ -31,6 +31,10 @@ export default class WebPlatform extends VectorBasePlatform {
this.runningVersion = null;
}
getHumanReadableName() {
return 'Web Platform';
}
/**
* Returns true if the platform supports displaying
* notifications, otherwise false.

Loading…
Cancel
Save