Skip to content

Commit

Permalink
Merge pull request #54
Browse files Browse the repository at this point in the history
  • Loading branch information
fxkr committed Apr 9, 2024
2 parents 92f207f + 20e0dec commit 639d57c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ <h1>link2aws.github.io</h1>

//document.getElementById("text").value = "arn:aws:iam::aws:policy/AdministratorAccess";
onUpdate();

// If the user passes in the arn as a anchor, immediately redirect them
var arn = window.location.hash.replace('#', '');
if (arn) {
elem.value = arn;
onUpdate();
var a = document.getElementById('link');
if (a) {
location.href = a.innerText;
}
};
}

function onUpdate() {
Expand Down

0 comments on commit 639d57c

Please sign in to comment.