42967f0a9a
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
22 lines
412 B
JavaScript
22 lines
412 B
JavaScript
/**
|
|
* Stores global variables without polluting the global namespace.
|
|
*/
|
|
|
|
const global = {
|
|
// Connection
|
|
_connection: "offline",
|
|
set connection(v) {
|
|
this._connection = v;
|
|
|
|
toolbar &&
|
|
toolbar.currentTool &&
|
|
toolbar.currentTool.state.redraw &&
|
|
toolbar.currentTool.state.redraw();
|
|
},
|
|
get connection() {
|
|
return this._connection;
|
|
},
|
|
|
|
// If there is a selected input
|
|
hasActiveInput: false,
|
|
};
|