👕 Fix lint issue
This commit is contained in:
@@ -26,7 +26,7 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||
}
|
||||
return false;
|
||||
},
|
||||
isMacOs(): boolean {
|
||||
isMacOs (): boolean {
|
||||
return /(ipad|iphone|ipod|mac)/i.test(navigator.platform);
|
||||
},
|
||||
isReadOnly (): boolean {
|
||||
@@ -280,7 +280,7 @@ export const nodeBase = mixins(nodeIndex).extend({
|
||||
});
|
||||
},
|
||||
|
||||
isCtrlKeyPressed(e: MouseEvent | KeyboardEvent): boolean {
|
||||
isCtrlKeyPressed (e: MouseEvent | KeyboardEvent): boolean {
|
||||
if (this.isMacOs) {
|
||||
return e.metaKey;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export const pushConnection = mixins(
|
||||
* @returns
|
||||
*/
|
||||
retryPushMessage (event: Event, retryAttempts: number) {
|
||||
retryAttempts = retryAttempts -1;
|
||||
retryAttempts = retryAttempts - 1;
|
||||
|
||||
if (retryAttempts <= 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user