mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-24 02:02:53 +02:00
Added an example using the identity API (#180)
* Added an example using the identity API * Updated with review comment fixes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>Redirect URL: <span id="redirect-url"></span></div>
|
||||
|
||||
<script src="options.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
Display the redirect URL.
|
||||
*/
|
||||
document.querySelector("#redirect-url").textContent = browser.identity.getRedirectURL();
|
||||
Reference in New Issue
Block a user