mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
refactor: optimize postStateToWebview by removing unnecessary await for postMessageToWebview calls
This commit is contained in:
parent
72bdae1acb
commit
b5b5b8ea63
1 changed files with 2 additions and 2 deletions
|
|
@ -1558,11 +1558,11 @@ export class ClineProvider
|
|||
|
||||
async postStateToWebview() {
|
||||
const state = await this.getStateToPostToWebview()
|
||||
await this.postMessageToWebview({ type: "state", state })
|
||||
this.postMessageToWebview({ type: "state", state })
|
||||
|
||||
// Check MDM compliance and send user to account tab if not compliant
|
||||
if (!this.checkMdmCompliance()) {
|
||||
await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
|
||||
this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue