Remove the unused canUseClipboard helper
CI / Lint (pull_request) Successful in 55s
CI / Test (pull_request) Successful in 1m22s
Release Drafter / Update release notes draft (pull_request) Successful in 15s

canCopyText covers the same capability checks and is the one the app actually uses.
This commit is contained in:
raucao committed 2026-11-29 17:31:45 +04:00
1 parent 47830f7224
commit 543d810ab2
2 files changed
-6

No files matched your search

-4
View File
@@ -19,10 +19,6 @@ function hasAsyncClipboard() {
);
}
export function canUseClipboard() {
return hasAsyncClipboard();
}
// True when text can be copied one way or another. Falls back to the legacy
// `document.execCommand('copy')` path, which also works on non-secure origins
// (e.g. a LAN dev server over plain http) where the async Clipboard API is
-2
View File
@@ -1,6 +1,5 @@
import { module, test } from 'qunit';
import {
canUseClipboard,
canCopyText,
canWebShare,
copyText,
@@ -55,7 +54,6 @@ module('Unit | Utility | share', function () {
test('capability guards return booleans without throwing', function (assert) {
assert.strictEqual(typeof canWebShare(), 'boolean');
assert.strictEqual(typeof canUseClipboard(), 'boolean');
assert.strictEqual(typeof canCopyText(), 'boolean');
});