fix(backend): fix rewrite-message filter
This commit is contained in:
parent
edfdcd02ed
commit
15c6370153
1 changed files with 6 additions and 2 deletions
|
|
@ -71,8 +71,12 @@ func main() {
|
|||
|
||||
msg := iter.Message()
|
||||
// Process assets
|
||||
if iter.Type() == MsgSetNodeAttributeURLBased || iter.Type() == MsgSetCSSDataURLBased || iter.Type() == MsgCSSInsertRuleURLBased {
|
||||
msg = assetMessageHandler.ParseAssets(sessionID, msg.Decode())
|
||||
if iter.Type() == MsgSetNodeAttributeURLBased ||
|
||||
iter.Type() == MsgSetCSSDataURLBased ||
|
||||
iter.Type() == MsgCSSInsertRuleURLBased ||
|
||||
iter.Type() == AdoptedSSReplaceURLBased ||
|
||||
iter.Type() == AdoptedSSInsertRuleURLBased {
|
||||
msg = assetMessageHandler.ParseAssets(sessionID, msg.Decode()) // TODO: filter type only once (use iterator inide or bring ParseAssets out here).
|
||||
}
|
||||
|
||||
// Filter message
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue