Skip to content

Commit

Permalink
Fixed #4
Browse files Browse the repository at this point in the history
  • Loading branch information
scambier committed Jan 17, 2023
1 parent 190a8fb commit 3add504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { MenuItem, Platform, Plugin, TFile } from 'obsidian'
import { loadSettings, settings, TextExtractorSettingsTab } from './settings'
import * as TextExtract from 'obsidian-text-extract'
import { canFileBeExtracted, extractText } from 'obsidian-text-extract'
const { clipboard } = require('electron')

export type TextExtractorApi = {
extractText: (file: TFile) => Promise<string>
Expand All @@ -29,6 +28,7 @@ export default class TextExtractorPlugin extends Plugin {
const submenu = item.setSubmenu()
// Copy to clipboard
if (Platform.isDesktopApp) {
const { clipboard } = require('electron')
submenu.addItem(item => {
item
.setTitle('Extract Text to clipboard')
Expand Down

0 comments on commit 3add504

Please sign in to comment.