about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/html/env.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 7dfe789d..588aa897 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -287,6 +287,9 @@ proc getComputedStyle(window: Window; element: Element;
   #TODO implement this properly
   return ok(element.style)
 
+proc postMessage(window: Window) {.jsfunc.} =
+  window.console.log("postMessage: Stub")
+
 proc setOnLoad(ctx: JSContext; window: Window; val: JSValue)
     {.jsfset: "onload".} =
   if JS_IsFunction(ctx, val):