This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Martin Brennan cecdef83a8
FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419)
Firefox does not support window.ClipboardItem yet (it is behind
a flag (dom.events.asyncClipboard.clipboardItem) as at version 87.)
so we need to fall back to the normal non-async clipboard copy, that
works in every browser except Safari.

This commit also tests the clipboardCopyAsync function by stubbing out
the clipboard on the window.navigator.

This fixes an issue in the discourse-chat plugin, where the
"Quote in Topic" button errored in Firefox.
2022-04-11 13:00:45 +10:00
..
app FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419) 2022-04-11 13:00:45 +10:00
config DEV: Allow ember server --environment production to be used (#15431) 2021-12-31 12:26:23 +00:00
lib DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
public/assets/scripts DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
tests FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419) 2022-04-11 13:00:45 +10:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Stop live-reloading locally on SCSS changes (#16193) 2022-03-15 16:46:12 +01:00
package.json DEV: Update Uppy to 2.1.6 (#16227) 2022-03-23 09:28:55 -04:00
testem.js DEV: Improve ember test (testem) output (#16401) 2022-04-06 22:57:52 +01:00