Skip to content

Commit 4547820

Browse files
lydellsupermario
authored andcommitted
Move shouldProxy closer to its only usage
1 parent fc38327 commit 4547820

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extra/Lamdera/Injection.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,13 @@ injections outputType =
656656

657657
-- LamderaFrontend or LamderaLive
658658
_ ->
659+
let
660+
shouldProxy =
661+
onlyIf (outputType == LamderaLive)
662+
[text|
663+
shouldProxy = $$author$$project$$LocalDev$$shouldProxy(msg)
664+
|]
665+
in
659666
[text|
660667
function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
661668
{

0 commit comments

Comments
 (0)