mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-07 11:58:20 +00:00
Fixed updating keyboard shortcuts on settings
This commit is contained in:
@@ -669,7 +669,6 @@ var zenMissingKeyboardShortcutL10n = {
|
|||||||
|
|
||||||
var gZenCKSSettings = {
|
var gZenCKSSettings = {
|
||||||
async init() {
|
async init() {
|
||||||
document.getElementById(ZEN_CKS_WRAPPER_ID).innerHTML = '';
|
|
||||||
await this._initializeCKS();
|
await this._initializeCKS();
|
||||||
if (this.__hasInitialized) return;
|
if (this.__hasInitialized) return;
|
||||||
this.__hasInitialized = true;
|
this.__hasInitialized = true;
|
||||||
@@ -699,6 +698,7 @@ var gZenCKSSettings = {
|
|||||||
|
|
||||||
async _initializeCKS() {
|
async _initializeCKS() {
|
||||||
let wrapper = document.getElementById(ZEN_CKS_WRAPPER_ID);
|
let wrapper = document.getElementById(ZEN_CKS_WRAPPER_ID);
|
||||||
|
wrapper.innerHTML = '';
|
||||||
|
|
||||||
let shortcuts = await gZenKeyboardShortcutsManager.getModifiableShortcuts();
|
let shortcuts = await gZenKeyboardShortcutsManager.getModifiableShortcuts();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user