Skip to content

Commit 128e624

Browse files
committed
Fix indentation
1 parent cc608cb commit 128e624

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/lib/Functions/handleCopy.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isBrowserSafari } from './safari';
77
export function handleCopy(event: ClipboardEvent, state: State, removeValues = false): State {
88
const activeSelectedRange = getActiveSelectedRange(state);
99
if (!activeSelectedRange) {
10-
return state;
10+
return state;
1111
}
1212
const { div } = getDataToCopy(state, activeSelectedRange, removeValues);
1313
copyDataCommands(event, state, div);
@@ -23,13 +23,13 @@ export function copyDataCommands(event: ClipboardEvent, state: State, div: HTMLD
2323
event.clipboardData.setData('text/html', div.innerHTML);
2424
} else if (supportNavigatorClipboard) {
2525
const clipboardItemData = {
26-
'text/html': new Blob([div.innerHTML], { type: 'text/html' }),
27-
'text/plain': new Blob([div.textContent || ''], { type: 'text/plain' }),
26+
'text/html': new Blob([div.innerHTML], { type: 'text/html' }),
27+
'text/plain': new Blob([div.textContent || ''], { type: 'text/plain' }),
2828
};
2929
const clipboardItem = new ClipboardItem(clipboardItemData);
3030

3131
navigator.clipboard.write([clipboardItem]).catch((error) => {
32-
console.error("Error copying to clipboard: ", error);
32+
console.error("Error copying to clipboard: ", error);
3333
});
3434
} else {
3535
document.body.appendChild(div);
@@ -41,4 +41,4 @@ export function copyDataCommands(event: ClipboardEvent, state: State, div: HTMLD
4141

4242
state.hiddenFocusElement?.focus({ preventScroll: true });
4343
event.preventDefault();
44-
}
44+
}

0 commit comments

Comments
 (0)