@lvce-editor/embeds-worker 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embedsWorkerMain.js +4 -0
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -1003,6 +1003,9 @@ const getDomTree = id => {
|
|
|
1003
1003
|
const insertCss = (id, css) => {
|
|
1004
1004
|
return invoke('ElectronWebContentsView.insertCss', id, css);
|
|
1005
1005
|
};
|
|
1006
|
+
const insertJavaScript = (id, code) => {
|
|
1007
|
+
return invoke('ElectronWebContentsView.insertJavaScript', id, code);
|
|
1008
|
+
};
|
|
1006
1009
|
const cancelNavigation = id => {
|
|
1007
1010
|
return invoke('ElectronWebContentsView.cancelNavigation', id);
|
|
1008
1011
|
};
|
|
@@ -1045,6 +1048,7 @@ const commandMap = {
|
|
|
1045
1048
|
'ElectronWebContentsView.handleTitleUpdated': handleTitleUpdated,
|
|
1046
1049
|
'ElectronWebContentsView.getDomTree': getDomTree,
|
|
1047
1050
|
'ElectronWebContentsView.insertCss': insertCss,
|
|
1051
|
+
'ElectronWebContentsView.insertJavaScript': insertJavaScript,
|
|
1048
1052
|
'ElectronWebContentsView.handleWillNavigate': handleWillNavigate,
|
|
1049
1053
|
'ElectronWebContentsView.hide': hide,
|
|
1050
1054
|
'ElectronWebContentsView.inspectElement': inspectElement,
|