add new BasePlatform method, Analytics fun on the Webpack train
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8a59acb5c3
commit
e991461e8d
|
@ -67,6 +67,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
||||||
dis.register(_onAction);
|
dis.register(_onAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getHumanReadableName() {
|
||||||
|
return 'Electron Platform';
|
||||||
|
}
|
||||||
|
|
||||||
setNotificationCount(count: number) {
|
setNotificationCount(count: number) {
|
||||||
if (this.notificationCount === count) return;
|
if (this.notificationCount === count) return;
|
||||||
super.setNotificationCount(count);
|
super.setNotificationCount(count);
|
||||||
|
|
|
@ -35,6 +35,10 @@ export default class VectorBasePlatform extends BasePlatform {
|
||||||
this._updateFavicon();
|
this._updateFavicon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getHumanReadableName() {
|
||||||
|
return 'Vector Base Platform';
|
||||||
|
}
|
||||||
|
|
||||||
_updateFavicon() {
|
_updateFavicon() {
|
||||||
try {
|
try {
|
||||||
// This needs to be in in a try block as it will throw
|
// 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;
|
this.runningVersion = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getHumanReadableName() {
|
||||||
|
return 'Web Platform';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the platform supports displaying
|
* Returns true if the platform supports displaying
|
||||||
* notifications, otherwise false.
|
* notifications, otherwise false.
|
||||||
|
|
Loading…
Reference in New Issue