|
|
|
@ -57,8 +57,10 @@ public class UpmBridge {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JSObject window; |
|
|
|
|
private Browser browser; |
|
|
|
|
|
|
|
|
|
private UpmBridge(Browser browser) { |
|
|
|
|
this.browser = browser; |
|
|
|
|
this.window = browser.executeJavaScriptAndReturnValue("window").asObject(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -112,6 +114,11 @@ public class UpmBridge {
|
|
|
|
|
return ServerPreferenceConfig.getInstance().getOptimizedUPMVersion(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSBridge |
|
|
|
|
public void reload() { |
|
|
|
|
browser.reloadIgnoringCache(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@JSBridge |
|
|
|
|
public String i18nText(String key) { |
|
|
|
|
return Toolkit.i18nText(key); |
|
|
|
|