Vova Tkach 5 years ago
parent
commit
6159c3009c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      engine/wrapper/wrapper.go

+ 3 - 0
engine/wrapper/wrapper.go

@@ -191,16 +191,19 @@ func (this *Wrapper) LoadSessionUser() bool {
 }
 
 func (this *Wrapper) Write(data string) {
+	// TODO: select context and don't write
 	this.W.Write([]byte(data))
 }
 
 func (this *Wrapper) MsgSuccess(msg string) {
+	// TODO: select context and don't write
 	this.Write(fmt.Sprintf(
 		`fave.ShowMsgSuccess('Success!', '%s', false);`,
 		utils.JavaScriptVarValue(msg)))
 }
 
 func (this *Wrapper) MsgError(msg string) {
+	// TODO: select context and don't write
 	this.Write(fmt.Sprintf(
 		`fave.ShowMsgError('Error!', '%s', true);`,
 		utils.JavaScriptVarValue(msg)))