| 373 | } |
| 374 | } |
| 375 | class EdgeI18nBridge { |
| 376 | getAcceptLanguages(callback) { |
| 377 | return bridgeLog.DoActionAndLog(() => { |
| 378 | return myBrowser.i18n.getAcceptLanguages(callback); |
| 379 | }, "i18n.getAcceptLanguages"); |
| 380 | } |
| 381 | getMessage(messageName, substitutions) { |
| 382 | return bridgeLog.DoActionAndLog(() => { |
| 383 | if (messageName.indexOf("@@extension_id") > -1) { |
| 384 | return myBrowser.runtime.id; |
| 385 | } |
| 386 | if (typeof substitutions !== "undefined" && typeof substitutions !== "null") { |
| 387 | return myBrowser.i18n.getMessage(messageName, substitutions); |
| 388 | } |
| 389 | else { |
| 390 | return myBrowser.i18n.getMessage(messageName); |
| 391 | } |
| 392 | }, "i18n.getMessage"); |
| 393 | } |
| 394 | getUILanguage() { |
| 395 | return bridgeLog.DoActionAndLog(() => { |
| 396 | return myBrowser.i18n.getUILanguage(); |
| 397 | }, "i18n.getUILanguage"); |
| 398 | } |
| 399 | } |
| 400 | class EdgeNotificationBridge { |
| 401 | get onButtonClicked() { bridgeLog.LogUnavailbleApi("notifications.onButtonClicked"); return bridgeHelper.fakeEvent; } |
| 402 | get onClicked() { bridgeLog.LogUnavailbleApi("notifications.onClicked"); return bridgeHelper.fakeEvent; } |
nothing calls this directly
no outgoing calls
no test coverage detected