リダイレクト URL として利用可能な URL を生成します。
この URL は、アドオン ID から生成されるため、使用したい場合、browser_specific_settings
キーを使用してアドオン ID を明示的に設定する必要があるでしょう (設定しない場合、アドオンを一時的にインストールするたびに、異なるリダイレクト URL を取得することになります)。
リダイレクトURL については、リダイレクトURL を取得するを参照してください。
構文
var redirectURL = browser.identity.getRedirectURL()
引数
なし
返り値
リダイレクト URL を含む文字列
ブラウザ互換性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
例
リダイレクト URL を取得する:
var redirectURL = browser.identity.getRedirectURL();
Example extensions
Acknowledgements
この API は Chromium の chrome.identity
API に基づいています。
Microsoft Edge の実装状況は Microsoft Corporation から提供されたものであり、ここでは Creative Commons Attribution 3.0 United States License に従います