JSH32 / Backpack

Highly performant and advanced self hosted file sharing platform made in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix clipboard issue on HTTPS

JSH32 opened this issue · comments

Copying tokens to clipboard does not work on HTTPS requests

commented

is this logic fine?

    const tempInput = document.createElement('input')
    tempInput.value = 'https://bionicjulia.com/examplelink'
    document.body.appendChild(tempInput)
    tempInput.select()
    document.execCommand('copy')
    document.body.removeChild(tempInput)

Got it from here