pomf / pomf

Pomf is a simple lightweight file host with support for drop, paste, click and API uploading.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javascript 2nd copy button doesn't work

ewhal opened this issue · comments

commented

All copy buttons except the first one don't work in chromium 51.0.2704.84 (Developer Build) (64-bit).
When clicked they return the error 'Discontiguous selection is not supported.(anonymous function) @ pomf.min.js'

Cannot reproduce on Chrome "v51.0.2704.103 m" or Chrome "v51.0.2704.106 m" using cuntflaps.me. Haven't checked with Chromium though.

EDIT: This is only with using one file, see my results below for with multiple files.

commented

Discontiguous selection is not supported.(anonymous function) @ pomf.min.js:100

chrome://version/ @ewhal

Mentioned before that it works fine for me; here's the build I'm running: https://i.imgur.com/0Bqvydv.png

EDIT: This is only with using one file, see my results below for with multiple files.

can confirm reproduction on latest stable and canary chrome builds.

Steps to reproduce:

  1. Upload multiple files
  2. Attempt to copy the first file link

Expected action is for the link to be copied to the clipboard, however Chrome returns a Discontiguous selection is not supported error

cc'ing @ileyd

while firefox will not flat-out refuse copying, it copies two links improperly, with both of them being copied example: a.cuntflaps.me/yfdafd.txthttps://a.cuntflaps.me/ywxefq

I'll take a look at this. I only tested on Firefox when I wrote it; didn't relaly think there would be a reason for it to be any different on other browsers.

@alucard0134 it works fine for me on firefox with multiple links

commented

I experienced the same thing as @alucard0134 on firefox as well

@ileyd and it pastes properly as well?

Investigating atm

Believe I have fixed this issue. Creating a PR.