Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: marcoscaceres/playground-remote
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: marcoscaceres-remote/playground-remote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 22, 2023

  1. Add origin info

    marcoscaceres committed Mar 22, 2023
    Copy the full SHA
    deeb9d1 View commit details
  2. test

    marcoscaceres committed Mar 22, 2023
    Copy the full SHA
    995f782 View commit details
Showing with 4 additions and 1 deletion.
  1. +4 −1 badging/index.html
5 changes: 4 additions & 1 deletion badging/index.html
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
</style>
</head>
<body>
<h1>Badging API Example</h1>
<h3 id="loc">Badging API</h2>
<button id="set-badge">Set Badge</button>
<button id="clear-badge">Clear Badge</button>
<br>
@@ -21,6 +21,7 @@ <h1>Badging API Example</h1>
const setBadgeButton = document.getElementById('set-badge');
const clearBadgeButton = document.getElementById('clear-badge');
const errorOutput = document.getElementById('error-output');
const loc = document.getElementById('loc');

setBadgeButton.addEventListener('click', async () => {
try {
@@ -40,6 +41,8 @@ <h1>Badging API Example</h1>
errorOutput.value = `Failed to clear badge: ${error}`;
}
});

loc.innerText = `${loc.innerText} @ ${document.location.origin}`;
</script>
</body>
</html>