Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset Clipboard to undefined if native code #1206

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

mAAdhaTTah
Copy link
Member

Chrome now ships with a window.Clipboard built in, which breaks
this check. This ensures we're not grabbing the built-in
Clipboard and definitely have the correct package version.

Fixes #1181.

Chrome now ships with a window.Clipboard built in, which breaks
this check. This ensures we're not grabbing the built-in
Clipboard and definitely have the correct package version.

Fixes PrismJS#1181.
@nghuuquyen
Copy link

i waiting this PR, i have error on my product because this problem

@mAAdhaTTah
Copy link
Member Author

@Golmote How do you feel about this approach?

@nghuuquyen
Copy link

@mAAdhaTTah Hi, Currently my solution for my product is remove your copy-to-clipboard plugin, so sad :( . But i hope it will work well later

@Golmote
Copy link
Contributor

Golmote commented Oct 19, 2017

Well, I can't say it's pretty. If it fixes the issue, that's ok for me, though. Hopefully this will be a temporary fix.

@Golmote Golmote merged commit b41d571 into PrismJS:gh-pages Oct 19, 2017
@mAAdhaTTah mAAdhaTTah deleted the issue/1181-fix-clipboard-check branch October 19, 2017 18:23
@mAAdhaTTah
Copy link
Member Author

I'm inclined to doubt it'll be temporary, as I haven't seen any movement from the developer on the Clipboard.js repository. I do think it'll be stable, so I don't think we'll need to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants