diff --git a/webfx-platform-console-gwt/pom.xml b/webfx-platform-console-gwt/pom.xml index 86eb6de8..3841963a 100644 --- a/webfx-platform-console-gwt/pom.xml +++ b/webfx-platform-console-gwt/pom.xml @@ -17,6 +17,11 @@ + + com.google.elemental2 + elemental2-dom + + dev.webfx webfx-platform-console diff --git a/webfx-platform-console-gwt/src/main/java/dev/webfx/platform/console/spi/impl/gwt/GwtConsoleProvider.java b/webfx-platform-console-gwt/src/main/java/dev/webfx/platform/console/spi/impl/gwt/GwtConsoleProvider.java index b4929f79..ecbf8347 100644 --- a/webfx-platform-console-gwt/src/main/java/dev/webfx/platform/console/spi/impl/gwt/GwtConsoleProvider.java +++ b/webfx-platform-console-gwt/src/main/java/dev/webfx/platform/console/spi/impl/gwt/GwtConsoleProvider.java @@ -1,6 +1,7 @@ package dev.webfx.platform.console.spi.impl.gwt; import dev.webfx.platform.console.spi.ConsoleProvider; +import elemental2.dom.DomGlobal; /** * @author Bruno Salmon @@ -20,6 +21,8 @@ public void logNative(Object nativeObject) { logConsole(nativeObject); } - private static native void logConsole(Object message) /*-{ $wnd.console.log(message); }-*/; + private static void logConsole(Object message) { + DomGlobal.console.log(message); + } }