Files
danbooru/app/views/posts/partials/show/_flash.html.erb
evazion fff68e1d16 ruffle: fix issue with ruffle falsely triggering keyboard shortcuts.
Fix issue mentioned in 55980c6fb with Javascript spazzing out on Flash
posts and randomly triggering keyboard shortcuts.

The bug was calling `javascript_pack_tag` twice. This caused the
runtime Javascript chunk to be loaded twice, caused a lot of Javascript
errors that somehow resulted in keyboard shortcuts being triggered.

The fix is to combine both calls into `javascript_pack_tag "application", "flash"`.

hxxps://github.com.rails.webpacker.issues.2932
2021-03-31 22:10:04 -05:00

4 lines
162 B
Plaintext

<div class="ruffle-container" data-swf="<%= post.tagged_file_url %>"></div>
<p><%= link_to "Save this flash (right click and save)", post.tagged_file_url %></p>