prod-hotfix
Thibault Duplessis 2021-01-28 18:51:03 +01:00
parent 7bfa96ed16
commit 6b6a4da81a
2 changed files with 7 additions and 2 deletions

View File

@ -68,7 +68,12 @@ export default class StormCtrl {
this.redrawSlow();
}
naturalFlag = () => {
endNow = (): void => {
this.pushToHistory(false);
this.end();
};
naturalFlag = (): void => {
this.pushToHistory(false);
this.end();
};

View File

@ -56,7 +56,7 @@ const renderControls = (ctrl: StormCtrl): VNode =>
'data-icon': 'b',
title: ctrl.trans('endRun'),
},
hook: onInsert(el => el.addEventListener('click', ctrl.end))
hook: onInsert(el => el.addEventListener('click', ctrl.endNow))
})
]);