tickwerk/src/helpers.js

11 lines
222 B
JavaScript
Raw Normal View History

2022-05-16 02:08:27 +02:00
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
export const getGame = () => {
2022-05-16 02:08:27 +02:00
if (!(game instanceof Game)) {
throw new Error('game is not initialized yet.');
}
return game;
};