Skip to content

Commit

Permalink
ペイントテンプレートのJavaScript構文errorを修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Dec 30, 2023
1 parent 2df7a4c commit 3587453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions potiboard5/templates/basic/paint.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
</style>
<script>
document.addEventListener('DOMContentLoaded',function(){
document.addEventListener('dblclick', fuction(e){ e.preventDefault()}, { passive: false });
document.addEventListener('dblclick', function(e){ e.preventDefault()}, { passive: false });
const chicken=document.querySelector('#chickenpaint-parent');
chicken.addEventListener('contextmenu', fuction(e){
chicken.addEventListener('contextmenu', function(e){
e.preventDefault();
e.stopPropagation();
}, { passive: false });
Expand Down
4 changes: 2 additions & 2 deletions potiboard5/templates/mono/mono_paint.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ function neo_add_disable_touch_move() {
</style>
<script>
document.addEventListener('DOMContentLoaded',function(){
document.addEventListener('dblclick', fuction(e){ e.preventDefault()}, { passive: false });
document.addEventListener('dblclick',function (e){ e.preventDefault()}, { passive: false });
const chicken=document.querySelector('#chickenpaint-parent');
chicken.addEventListener('contextmenu', fuction(e){
chicken.addEventListener('contextmenu', function(e){
e.preventDefault();
e.stopPropagation();
}, { passive: false });
Expand Down

0 comments on commit 3587453

Please sign in to comment.