From e87affbbca30ab381e8f43f19b2b408618e37bd2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 1 Jul 2021 13:19:39 -0500 Subject: [PATCH] Remove 'beforeunload' event from UI This only works in MS Edge but likely causes re-rendering of the UI on compose events in every browser. There are better ways to prevent data loss, like storing the composer state in localStorage. --- app/soapbox/features/ui/index.js | Bin 25768 -> 24823 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/features/ui/index.js b/app/soapbox/features/ui/index.js index f4a8ef051f1ec03b47a0707c979ea818b604ebac..aef663b39815b17df75a580d026834133e2ef336 100644 GIT binary patch delta 62 zcmV-E0KxyL$pQDl0kCuwlj1rQvtSj=B$MnIAhWwVHvzN7J*WwjU{?i`aYq@G*BLUC UQ%E7RD@d{hlSdjKvqes07EQ+(p#T5? delta 869 zcma)4!D`e{6lE4JEaIw^5frW@>C}+a@g@)p z#xO?S*4~?LR1L5jKv&XkeR8nwTR&I>_a$P<9pXNp!)G^kypXL-JwH^aV@}|DzdwXq z3$X!?rFg_Fq9jGlbdFwHLU+XyTZ)r>kMO_=7H0kDjdv?Idv48iIGZAcBV*KJ<>KzO z|9_y)8e0YCm)o6!?%ru#dW;ie@ugNqjPt{O`?l1q0%%wX&cs&zSzVETdVRIo40Jl+ z{T(+P9F$tCOeWul4^=$?y&k+kX4e^5yR{6Vg{T@g0kgO-3eN%Gp?8W>KT-sy?}w%tPv;psTWQyUmIZ_$S`+t5*+=|L^z{SkC6H;b6x-zYwA zo?Og-w6FE*Nmf