Merge remote-tracking branch 'refs/remotes/upstream/master'
This commit is contained in:
@@ -101,7 +101,7 @@ function imgCont(type) {
|
||||
function imageXhr(id, key, murl) {
|
||||
let time = 0
|
||||
var startTime = new Date()
|
||||
const timer = setInterval(function() {
|
||||
const timer = setInterval(function () {
|
||||
time = time + 1
|
||||
$('#imgsec').text(time)
|
||||
}, 10)
|
||||
@@ -369,3 +369,13 @@ function copyImgUrl() {
|
||||
execCopy(murl)
|
||||
M.toast({ html: lang.lang_img_copyDone, displayLength: 1500 })
|
||||
}
|
||||
async function copyImgBinary() {
|
||||
var murl = $('#imagemodal').attr('data-original')
|
||||
const blob = await (await fetch(murl)).blob()
|
||||
const reader = new FileReader()
|
||||
reader.onloadend = function () {
|
||||
postMessage(['copyBinary', reader.result], '*')
|
||||
M.toast({ html: lang.lang_imgBin_copyDone, displayLength: 1500 })
|
||||
}
|
||||
reader.readAsDataURL(blob)
|
||||
}
|
@@ -837,12 +837,12 @@ function testExecTrg() {
|
||||
testExec(inputPlugin)
|
||||
}
|
||||
async function deletePlugin() {
|
||||
const alert = await Swal.fire({
|
||||
const delIsIt = await Swal.fire({
|
||||
title: 'delete',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
})
|
||||
if (!alert) return false
|
||||
if (!delIsIt.isConfirmed) return false
|
||||
editor.setValue('', -1)
|
||||
var pgns = localStorage.getItem('plugins')
|
||||
var args = JSON.parse(pgns ? pgns : '[]')
|
||||
|
Reference in New Issue
Block a user