when the JS is upgraded but the browser has a cached page, turbo sometimes tries to reinsert the old one, causing "already declared" errors

This commit is contained in:
Doug Hoyte
2023-09-28 17:31:02 -04:00
parent ea6ca634ce
commit 17afa9287d

View File

@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="$(ctx.staticFilesPrefix)/oddbean.css?$(ctx.staticOddbeanCssHash)" rel="stylesheet"> <link href="$(ctx.staticFilesPrefix)/oddbean.css?$(ctx.staticOddbeanCssHash)" rel="stylesheet">
<script defer src="$(ctx.staticFilesPrefix)/oddbean.js?$(ctx.staticOddbeanJsHash)"></script> <script defer data-turbo-eval="false" src="$(ctx.staticFilesPrefix)/oddbean.js?$(ctx.staticOddbeanJsHash)"></script>
<title>$(ctx.title)Oddbean</title> <title>$(ctx.title)Oddbean</title>
</head> </head>