Skip to content

Commit 1eeeaa7

Browse files
committed
fix #104: Console.clear() doesn't work
1 parent b2ed9dc commit 1eeeaa7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/javascript/v3/josm/scriptingconsole.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function println() {
8888
*
8989
*/
9090
export function clear() {
91-
const action = ScriptingConsole.getInstance().getScriptLog().getClearAction()
91+
const action = ScriptingConsole.static.getInstance().getScriptLog().getClearAction()
9292
action.actionPerformed(null)
9393
}
9494

@@ -100,7 +100,7 @@ export function clear() {
100100
* console.show()
101101
*/
102102
export function show() {
103-
ScriptingConsole.showScriptingConsole()
103+
ScriptingConsole.static.showScriptingConsole()
104104
}
105105

106106
/**
@@ -111,7 +111,7 @@ export function show() {
111111
* console.hide()
112112
*/
113113
export function hide() {
114-
ScriptingConsole.hideScriptingConsole()
114+
ScriptingConsole.static.hideScriptingConsole()
115115
}
116116

117117
/**
@@ -122,5 +122,5 @@ export function hide() {
122122
* console.toggle()
123123
*/
124124
export function toggle() {
125-
ScriptingConsole.toggleScriptingConsole()
125+
ScriptingConsole.static.toggleScriptingConsole()
126126
}

0 commit comments

Comments
 (0)