()
| 256 | |
| 257 | // Debugging routines. |
| 258 | logModes() { |
| 259 | if (Mode.debug) { |
| 260 | this.log("active modes (top to bottom):"); |
| 261 | for (const mode of Mode.modes.slice().reverse()) { |
| 262 | this.log(" ", mode.id); |
| 263 | } |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | log(...args) { |
| 268 | if (Mode.debug) { |