【发布时间】:2014-05-21 01:31:36
【问题描述】:
我需要从 GWT 前端向 chrome 扩展发送消息。为此,我在 GWT 中使用 JSNI 并调用以下方法:
static native void sendMessageToChromeExtension() /*-{
chrome.runtime.sendMessage(...);
}-*/;
但是,这不起作用,我得到:
Cannot read property 'sendMessage' of undefined
还有其他方法吗?
【问题讨论】:
标签: java google-chrome gwt google-chrome-extension