mirror of
https://github.com/orangeglo/gbnp.git
synced 2026-08-19 23:24:07 -05:00
invalidate menu when uploading a new one, hide invalid text if menu not present
This commit is contained in:
@@ -48,6 +48,7 @@ class Menu {
|
||||
}
|
||||
|
||||
setData(arrayBuffer) {
|
||||
this._valid = null;
|
||||
this.data = new Uint8Array(arrayBuffer);
|
||||
if (this.valid()) {
|
||||
localStorage.setItem('menuData', JSON.stringify({ data: Array.from(this.data) }));
|
||||
|
||||
Reference in New Issue
Block a user