Mercurial > zeropaste
comparison app/javascript/application.js @ 507:7ea98672ba1f default tip
Fix converted string
author | nanaya <me@nanaya.net> |
---|---|
date | Sat, 29 Mar 2025 19:09:48 +0900 |
parents | 361ab9e7ffad |
children |
comparison
equal
deleted
inserted
replaced
506:b5c6fd96100b | 507:7ea98672ba1f |
---|---|
76 | 76 |
77 const format = window.location.hash.slice(1); | 77 const format = window.location.hash.slice(1); |
78 | 78 |
79 if (!['pl', 'hl', 'md'].includes(format)) return; | 79 if (!['pl', 'hl', 'md'].includes(format)) return; |
80 | 80 |
81 $('.js-show-tab[data-mode=#{format}]').click(); | 81 $(`.js-show-tab[data-mode=${format}]`).click(); |
82 } | 82 } |
83 | 83 |
84 $(loadLanguageItems); | 84 $(loadLanguageItems); |
85 $(switchToCurrentHash); | 85 $(switchToCurrentHash); |
86 $(document).on('click', '.js-paste-preview-md', showPreview); | 86 $(document).on('click', '.js-paste-preview-md', showPreview); |