Awaitable responses to injectCss (& the rest of the gang)
This commit is contained in:
parent
1e70ea51cf
commit
691675bdc2
@ -58,22 +58,22 @@ class PageInfo {
|
|||||||
this.currentZoomScale = 1;
|
this.currentZoomScale = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
injectCss(cssString) {
|
async injectCss(cssString) {
|
||||||
this.comms.sendMessage({
|
await this.comms.sendMessage({
|
||||||
cmd: 'inject-css',
|
cmd: 'inject-css',
|
||||||
cssString: cssString
|
cssString: cssString
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ejectCss(cssString) {
|
async ejectCss(cssString) {
|
||||||
this.comms.sendMessage({
|
await this.comms.sendMessage({
|
||||||
cmd: 'eject-css',
|
cmd: 'eject-css',
|
||||||
cssString: cssString
|
cssString: cssString
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
replaceCss(oldCssString, newCssString) {
|
async replaceCss(oldCssString, newCssString) {
|
||||||
this.comms.sendMessage({
|
await this.comms.sendMessage({
|
||||||
cmd: 'replace-css',
|
cmd: 'replace-css',
|
||||||
newCssString,
|
newCssString,
|
||||||
oldCssString
|
oldCssString
|
||||||
|
Loading…
Reference in New Issue
Block a user