diff --git a/lib/browser/api/touch-bar.ts b/lib/browser/api/touch-bar.ts index def9b8d4cc93..9e5a43468daa 100644 --- a/lib/browser/api/touch-bar.ts +++ b/lib/browser/api/touch-bar.ts @@ -7,8 +7,8 @@ const hiddenProperties = Symbol('hidden touch bar props'); const extendConstructHook = (target: any, hook: Function) => { const existingHook = target._hook; target._hook = function () { - hook.call(this); if (existingHook) existingHook.call(this); + hook.call(this); }; }; @@ -135,7 +135,7 @@ class TouchBarGroup extends TouchBarItem items; - if (settings.Get("child", &child) && child.Get("ordereredItems", &items)) { + if (settings.Get("child", &child) && child.Get("orderedItems", &items)) { item.popoverTouchBar = [self touchBarFromItemIdentifiers:[self identifiersFromSettings:items]]; } @@ -572,7 +572,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item"; if (!settings.Get("child", &child)) return nil; std::vector items; - if (!child.Get("ordereredItems", &items)) + if (!child.Get("orderedItems", &items)) return nil; NSMutableArray* generatedItems = [NSMutableArray array]; @@ -601,7 +601,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item"; if (!settings.Get("child", &child)) return; std::vector items; - if (!child.Get("ordereredItems", &items)) + if (!child.Get("orderedItems", &items)) return; item.groupTouchBar =