mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 03:37:48 +08:00
upgrade-dev v2.3.4
This commit is contained in:
parent
bebc4385c0
commit
c007b878b5
@ -353,8 +353,8 @@ func init() {
|
|||||||
if !*result {
|
if !*result {
|
||||||
*result = renderProcessMessageReceived(browse, frame, processId, message)
|
*result = renderProcessMessageReceived(browse, frame, processId, message)
|
||||||
}
|
}
|
||||||
frame.Free()
|
//frame.Free()
|
||||||
browse.Free()
|
//browse.Free()
|
||||||
message.Free()
|
message.Free()
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
@ -86,8 +86,8 @@ func init() {
|
|||||||
if !*result {
|
if !*result {
|
||||||
*result = browserProcessMessageReceived(browse, frame, processId, message)
|
*result = browserProcessMessageReceived(browse, frame, processId, message)
|
||||||
}
|
}
|
||||||
frame.Free()
|
//frame.Free()
|
||||||
browse.Free()
|
//browse.Free()
|
||||||
message.Free()
|
message.Free()
|
||||||
case ChromiumEventOnResourceLoadComplete:
|
case ChromiumEventOnResourceLoadComplete:
|
||||||
sender, browse, frame, request, response := resourceEventGet(fn, getVal, true)
|
sender, browse, frame, request, response := resourceEventGet(fn, getVal, true)
|
||||||
|
@ -139,6 +139,17 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let tgesi = null
|
||||||
|
|
||||||
|
function autotestGoEmit() {
|
||||||
|
if (tgesi != null) {
|
||||||
|
clearInterval(tgesi)
|
||||||
|
tgesi = null
|
||||||
|
return
|
||||||
|
}
|
||||||
|
tgesi = setInterval(testGoEmit, 1)
|
||||||
|
}
|
||||||
|
|
||||||
function testGoEmit() {
|
function testGoEmit() {
|
||||||
ipc.emit("testGoEmit");
|
ipc.emit("testGoEmit");
|
||||||
}
|
}
|
||||||
@ -170,6 +181,7 @@
|
|||||||
<button onclick="testResultArgs()">testResultArgs</button>
|
<button onclick="testResultArgs()">testResultArgs</button>
|
||||||
<br>
|
<br>
|
||||||
<button onclick="testGoEmit()">testGoEmit</button>
|
<button onclick="testGoEmit()">testGoEmit</button>
|
||||||
|
<button onclick="autotestGoEmit()">自动testGoEmit</button>
|
||||||
<br>
|
<br>
|
||||||
<button onclick="bindFunc()">bindFunc</button>
|
<button onclick="bindFunc()">bindFunc</button>
|
||||||
<button onclick="bindField()">bindField</button>
|
<button onclick="bindField()">bindField</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user