Skip to content

Commit

Permalink
Merge pull request #15 from WizardSoftware/alternate-backbutton
Browse files Browse the repository at this point in the history
another attempt at back button view
  • Loading branch information
fuzzzerd authored Aug 23, 2022
2 parents 79a8770 + c778606 commit fe19188
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Views/BackButton/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
<html lang="en">

<head>
<script>
window.addEventListener("message", (d) => {
if (d.data === "@Constants.BackButtonPostEventName") {
FileMaker.PerformScript("@Constants.BackButtonScriptName", "");
}
});
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
</head>

<body></body>

<script>
window.addEventListener("message", (d) => {
if (d.data === "@Constants.BackButtonPostEventName") {
FileMaker.PerformScript("@Constants.BackButtonScriptName", "");
}
});
</script>

</html>

0 comments on commit fe19188

Please sign in to comment.