Blame view
GameSDKResources.bundle/loginJs.txt
512 Bytes
c80ffd587
![]() |
1 |
;(function() { |
2332162ce
|
2 3 |
var bridge = 'sdk'; |
c80ffd587
![]() |
4 5 |
if (window[bridge]) { return } |
2332162ce
|
6 |
|
c80ffd587
![]() |
7 8 9 10 |
window[bridge] = {}; window[bridge]['onResult'] = function onResult(result){ |
2332162ce
|
11 12 13 14 15 16 17 |
window.webkit.messageHandlers.sdk.postMessage({'m':'onResult','p':JSON.stringify(arguments)}); }; window[bridge]['closeWin'] = function closeWin(oid,status,extraInfo){ window.webkit.messageHandlers.sdk.postMessage({'m':'closeWin','p':JSON.stringify(arguments)}); }; |
c80ffd587
![]() |
18 |
|
c80ffd587
![]() |
19 |
//通知js开始初始化 |
2332162ce
|
20 |
|
c80ffd587
![]() |
21 22 23 24 |
if(typeof(onInjectJsOver)=='function') onInjectJsOver(); })(); |