mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 22:44:55 +00:00
use @electron/remote
This commit is contained in:
@@ -175,12 +175,12 @@ export class XTermFrontend extends Frontend {
|
||||
copySelection (): void {
|
||||
const text = this.getSelection()
|
||||
if (text.length < 1024 * 32) {
|
||||
require('electron').remote.clipboard.write({
|
||||
require('@electron/remote').clipboard.write({
|
||||
text: this.getSelection(),
|
||||
html: this.getSelectionAsHTML(),
|
||||
})
|
||||
} else {
|
||||
require('electron').remote.clipboard.write({
|
||||
require('@electron/remote').clipboard.write({
|
||||
text: this.getSelection(),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user