fix(backend/sink): fixed messages types

This commit is contained in:
Alexander Zavorotynskiy 2022-08-30 10:43:33 +02:00
parent 68591a76a5
commit 513aa89267

View file

@ -74,8 +74,8 @@ func main() {
if iter.Type() == MsgSetNodeAttributeURLBased ||
iter.Type() == MsgSetCSSDataURLBased ||
iter.Type() == MsgCSSInsertRuleURLBased ||
iter.Type() == AdoptedSSReplaceURLBased ||
iter.Type() == AdoptedSSInsertRuleURLBased {
iter.Type() == MsgAdoptedSSReplaceURLBased ||
iter.Type() == MsgAdoptedSSInsertRuleURLBased {
msg = assetMessageHandler.ParseAssets(sessionID, msg.Decode()) // TODO: filter type only once (use iterator inide or bring ParseAssets out here).
}