@lvce-editor/embeds-process 3.2.1 → 3.4.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.
|
@@ -212,6 +212,10 @@ const insertCss = async (id, css) => {
|
|
|
212
212
|
// @ts-ignore
|
|
213
213
|
return invoke$1('ElectronWebContentsViewFunctions.insertCss', id, css);
|
|
214
214
|
};
|
|
215
|
+
const insertJavaScript = async (id, css) => {
|
|
216
|
+
// @ts-ignore
|
|
217
|
+
return invoke$1('ElectronWebContentsViewFunctions.insertJavaScript', id, css);
|
|
218
|
+
};
|
|
215
219
|
const show = async (id, ...args) => {
|
|
216
220
|
return invoke$1('ElectronWebContentsViewFunctions.show', id, ...args);
|
|
217
221
|
};
|
|
@@ -1570,6 +1574,7 @@ const commandMap = {
|
|
|
1570
1574
|
'ElectronWebContentsView.getStats': getStats,
|
|
1571
1575
|
'ElectronWebContentsView.handleKeyBinding': handleKeyBinding,
|
|
1572
1576
|
'ElectronWebContentsView.insertCss': insertCss,
|
|
1577
|
+
'ElectronWebContentsView.insertJavaScript': insertJavaScript,
|
|
1573
1578
|
'ElectronWebContentsView.inspectElement': inspectElement,
|
|
1574
1579
|
'ElectronWebContentsView.openDevtools': openDevtools,
|
|
1575
1580
|
'ElectronWebContentsView.reload': reload,
|