identity.getRedirectURL()
リダイレクト URL として利用可能な URL を生成します。
この URL は、アドオン ID から生成されるため、使用したい場合、browser_specific_settings
キーを使用してアドオン ID を明示的に設定する必要があるでしょう (設定しない場合、アドオンを一時的にインストールするたびに、異なるリダイレクト URL を取得することになります)。
リダイレクト URL については、リダイレクト URL を取得するを参照してください。
構文
js
var redirectURL = browser.identity.getRedirectURL();
引数
なし
返り値
リダイレクト URL を含む文字列
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getRedirectURL |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on 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 を取得する:
js
var redirectURL = browser.identity.getRedirectURL();
Example extensions
メモ:
この API は Chromium の chrome.identity
API に基づいています。Microsoft Edge の実装状況は Microsoft Corporation から提供されたものであり、ここでは Creative Commons Attribution 3.0 United States License に従います