aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/html_container.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-17 18:41:23 +0800
committerobscuren <geffobscura@gmail.com>2014-08-17 18:41:23 +0800
commit27735bbdfc4e32e2e5ca11f48591d62b766aa3f5 (patch)
treeceb02da5048d2f592944ff7bc41186fc81f8e76b /ethereal/html_container.go
parent2eab964a00b998068f49b088949730f4896e256c (diff)
downloaddexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.gz
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.bz2
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.lz
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.xz
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.tar.zst
dexon-27735bbdfc4e32e2e5ca11f48591d62b766aa3f5.zip
State dumps from gui
Diffstat (limited to 'ethereal/html_container.go')
-rw-r--r--ethereal/html_container.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethereal/html_container.go b/ethereal/html_container.go
index e682dc3eb..69edea570 100644
--- a/ethereal/html_container.go
+++ b/ethereal/html_container.go
@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"errors"
+ "fmt"
"io/ioutil"
"net/url"
"os"
@@ -139,3 +140,8 @@ func (self *HtmlApplication) Messages(messages ethstate.Messages, id string) {
func (app *HtmlApplication) Destroy() {
app.engine.Destroy()
}
+
+func (app *HtmlApplication) Post(data string, seed int) {
+ fmt.Println("about to call 'post'")
+ app.webView.Call("post", seed, data)
+}