1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

start to tray updates

This commit is contained in:
Kyle Spearrin
2019-02-02 12:26:46 -05:00
parent 9795f02b74
commit 04e6fac5e4
3 changed files with 4 additions and 4 deletions

View File

@@ -2,5 +2,5 @@ export class ElectronConstants {
static readonly enableMinimizeToTrayKey: string = 'enableMinimizeToTray';
static readonly enableCloseToTrayKey: string = 'enableCloseToTray';
static readonly enableTrayKey: string = 'enableTray';
static readonly enableStartMinimizedKey: string = 'enableStartMinimizedKey';
static readonly enableStartToTrayKey: string = 'enableStartToTrayKey';
}

View File

@@ -24,7 +24,7 @@ export function sequentialize(cacheKey: (args: any[]) => string) {
};
return {
value: function(...args: any[]) {
value: function (...args: any[]) {
const cache = getCache(this);
const argsCacheKey = cacheKey(args);
let response = cache.get(argsCacheKey);

View File

@@ -21,7 +21,7 @@ export function throttle(limit: number, throttleKey: (args: any[]) => string) {
};
return {
value: function(...args: any[]) {
value: function (...args: any[]) {
const throttles = getThrottles(this);
const argsThrottleKey = throttleKey(args);
let queue = throttles.get(argsThrottleKey);