Skip to content

Commit

Permalink
Add redirect for Web Share Target (#5)
Browse files Browse the repository at this point in the history
Spec migrated to WebApps WG:
w3c/web-share-target#87

Co-authored-by: Marcos Cáceres <marcos@marcosc.com>
  • Loading branch information
tidoust and marcoscaceres authored Jun 10, 2020
1 parent 2a8e3a2 commit 49c72e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web-share-target/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!doctype html>
<!DOCTYPE html>
<script>
const { hash } = window.location;
window.location = `https://w3c.github.io/web-share-target/${hash}`;
let currentHash = window.location.hash;
let newLocation = "https://w3c.github.io/web-share-target/" + currentHash;
window.location = newLocation;
</script>

0 comments on commit 49c72e5

Please sign in to comment.