Skip to content

Commit 62601f4

Browse files
removed comments, changed nodeIntegration value
1 parent 1efc13c commit 62601f4

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/main/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function createWindow() {
4444
webPreferences: {
4545
// Use pluginOptions.nodeIntegration, leave this alone
4646
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
47-
nodeIntegration: true,
47+
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
4848
webviewTag: true,
4949
webSecurity: false,
5050
contextIsolation: false,

src/renderer/class/CaptionManager.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ class CaptionManager {
100100
this.emitOpenedJSON();
101101
return;
102102
}
103-
//this.currentCaptionIndex.edited = true;
104-
// -- the above line didnt make sense, edited it out, and set the current caption edited to be true
103+
105104
this.emitCurrent($origin);
106105
this.emitData($origin);
107106
}

src/renderer/components/caption-studio/TextEditor.vue

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ export default {
154154
EventBus.$on('caption_reset', this.reset);
155155
EventBus.$on('json_errors', this.onJsonErrors);
156156
this.$refs.Quill?.quill?.on('text-change', this.onEdit);
157-
//this.$refs.Quill?.$el.addEventListener('paste', catchPasteEvent);
158157
},
159158
/**
160159
*

0 commit comments

Comments
 (0)