Make TrezorApi independent of BrowserPlugin