Skip to content

Commit 0dee518

Browse files
committed
FullStory: Ignore rage- and dead clicks on debug area
1 parent 76e8a23 commit 0dee518

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webApp/src/main/scala/wust/webApp/views/Components.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,15 +1046,16 @@ object Components {
10461046
onMultiClickActivateDebugging
10471047
)
10481048

1049-
def onMultiClickActivateDebugging(implicit ctx:Ctx.Owner) = {
1049+
def onMultiClickActivateDebugging(implicit ctx:Ctx.Owner) = VDomModifier(
1050+
cls := "fs-ignore-rage-clicks fs-ignore-dead-clicks", // https://help.fullstory.com/hc/en-us/articles/360020622734
10501051
Elements.onClickN(desiredClicks = if(DevOnly.isTrue) 1 else 8).foreach {
10511052
DebugOnly.isTrueSetting = true
10521053
Logging.setup()
10531054
wust.webApp.state.GlobalStateFactory.setupStateDebugLogging()
10541055
DeployedOnly(dom.window.alert(s"Woost version: ${WoostConfig.value.versionString}\nLogging and DevOnly is now enabled"))
10551056
()
10561057
}
1057-
}
1058+
)
10581059

10591060
def experimentalSign(color: String) = maturityLabel("experimental", fgColor = color, borderColor = color)
10601061

0 commit comments

Comments
 (0)