mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 14:02:00 +08:00
FIX: Selecting text was weird with the latest Chrome hack
This commit is contained in:
parent
70782dcc0b
commit
782b062baa
|
@ -8,6 +8,9 @@ export default {
|
|||
withPluginApi('0.1', api => {
|
||||
api.decorateCooked($elem => {
|
||||
|
||||
const iframes = $('.lazyYT', $elem);
|
||||
if (iframes.length === 0) { return; }
|
||||
|
||||
// We use this because watching videos fullscreen in Chrome was super buggy
|
||||
// otherwise. Thanks to arrendek from q23 for the technique.
|
||||
$elem.iframeTracker({ blurCallback: () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user