Skip to content

Commit 639d57c

Browse files
committed
Merge pull request #54
2 parents 92f207f + 20e0dec commit 639d57c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ <h1>link2aws.github.io</h1>
6363

6464
//document.getElementById("text").value = "arn:aws:iam::aws:policy/AdministratorAccess";
6565
onUpdate();
66+
67+
// If the user passes in the arn as a anchor, immediately redirect them
68+
var arn = window.location.hash.replace('#', '');
69+
if (arn) {
70+
elem.value = arn;
71+
onUpdate();
72+
var a = document.getElementById('link');
73+
if (a) {
74+
location.href = a.innerText;
75+
}
76+
};
6677
}
6778

6879
function onUpdate() {

0 commit comments

Comments
 (0)