forked from MarseyWorld/MarseyWorld
uploads: fix paste to upload on firefox
parent
9624ae2b5d
commit
994ca902ca
|
@ -264,7 +264,7 @@ function post_comment(fullname, hide){
|
|||
|
||||
document.onpaste = function(event) {
|
||||
var focused = document.activeElement;
|
||||
const files = event.clipboardData.files
|
||||
const files = structuredClone(event.clipboardData.files);
|
||||
|
||||
if (files.length > 4)
|
||||
{
|
||||
|
|
|
@ -87,7 +87,7 @@ function updatebgselection(){
|
|||
document.onpaste = function(event) {
|
||||
var focused = document.activeElement;
|
||||
if (focused.id == 'bio-text') {
|
||||
const files = event.clipboardData.files
|
||||
const files = structuredClone(event.clipboardData.files);
|
||||
|
||||
if (files.length > 4)
|
||||
{
|
||||
|
|
|
@ -55,7 +55,7 @@ function hide_image() {
|
|||
}
|
||||
|
||||
document.onpaste = function(event) {
|
||||
files = event.clipboardData.files
|
||||
files = structuredClone(event.clipboardData.files);
|
||||
|
||||
if (files.length > 4)
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
<script>
|
||||
document.onpaste = function(event) {
|
||||
files = event.clipboardData.files
|
||||
files = structuredClone(event.clipboardData.files);
|
||||
|
||||
filename = files[0]
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
<script>
|
||||
document.onpaste = function(event) {
|
||||
files = event.clipboardData.files
|
||||
files = structuredClone(event.clipboardData.files);
|
||||
|
||||
filename = files[0]
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
<script>
|
||||
document.onpaste = function(event) {
|
||||
files = event.clipboardData.files
|
||||
files = structuredClone(event.clipboardData.files);
|
||||
|
||||
filename = files[0]
|
||||
|
||||
|
|
Loading…
Reference in New Issue