Skip to content

Commit

Permalink
refactor: remove use of @ember/string
Browse files Browse the repository at this point in the history
fix #409
  • Loading branch information
jkusa committed Jul 20, 2024
1 parent 8b1b85b commit 5dbca8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/modifiers/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { modifier } from 'ember-modifier';
import ClipboardJS from 'clipboard';
import { isBlank } from '@ember/utils';
import { capitalize } from '@ember/string';
import { guidFor } from '@ember/object/internals';
import { macroCondition, dependencySatisfies } from '@embroider/macros';

const CLIPBOARD_EVENTS = ['success', 'error'];

function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}

function clipboard(element, params, hash) {
const {
action = 'copy',
Expand Down

0 comments on commit 5dbca8e

Please sign in to comment.