mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-22 16:13:20 +01:00
fix edit control state on load
This commit is contained in:
parent
49bbbb074e
commit
83815a8651
@ -14,6 +14,8 @@ toolbar.bar = {};
|
||||
|
||||
toolbar.bar.render = () => {
|
||||
|
||||
toolbar.current = new ToolbarControl();
|
||||
|
||||
const body = document.querySelector('body');
|
||||
|
||||
switch (state.get.current().toolbar.location) {
|
||||
@ -29,8 +31,8 @@ toolbar.bar.render = () => {
|
||||
};
|
||||
|
||||
toolbar.init = () => {
|
||||
toolbar.current = new ToolbarControl();
|
||||
toolbar.bar.render();
|
||||
toolbar.current.update.edit();
|
||||
};
|
||||
|
||||
export { toolbar }
|
||||
|
Loading…
Reference in New Issue
Block a user