Skip to content

Commit 09eb791

Browse files
committed
fixup! native crx binding support
1 parent 2bc0410 commit 09eb791

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/resources/api_window_internal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apiBridge.registerCustomHook(function(bindingsAPI) {
22
var apiFunctions = bindingsAPI.apiFunctions;
3+
apiFunctions.setHandleRequest('getCurrent', function() {
4+
return bindingUtil.sendRequestSync('nw.currentWindowInternal.getCurrent', $Array.from(arguments), undefined, undefined)[0];
5+
});
36
apiFunctions.setHandleRequest('getZoom', function() {
47
return bindingUtil.sendRequestSync('nw.currentWindowInternal.getZoom', $Array.from(arguments), undefined, undefined)[0];
58
});

0 commit comments

Comments
 (0)