File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/scramjet/packages/core
src/client/shared/requests Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ where
472472 if s. property . name == "postMessage" {
473473 // include the "postMessage" and the dot before it in the inner span
474474 // if `postMessage?.` remove the dot and the question mark
475- let offset = if s. optional { 1 } else { 2 } ;
475+ let offset = if s. optional { 2 } else { 1 } ;
476476
477477 self . jschanges . add ( rewrite ! ( s. span, WrapPostMessage {
478478 inner: Span :: new( s. property. span. start - offset, s. property. span. end) ,
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ export default function (client: ScramjetClient) {
4444 newHeaders . append ( key , value ) ;
4545 }
4646 }
47+
48+ return newHeaders ;
4749 } ,
4850 } ) ;
4951}
You can’t perform that action at this time.
0 commit comments