mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
delete old cookie keys
This commit is contained in:
parent
02ef07dca4
commit
dd37436da2
1 changed files with 16 additions and 1 deletions
|
@ -2,9 +2,24 @@ define [
|
||||||
"base"
|
"base"
|
||||||
"libs/md5"
|
"libs/md5"
|
||||||
], (App) ->
|
], (App) ->
|
||||||
|
oldKeys = [
|
||||||
|
"sl_abt_multi_currency_editor_eu-eu"
|
||||||
|
"sl_abt_multi_currency_eu-eu"
|
||||||
|
"sl_abt_multi_currency_editor_eu-usd"
|
||||||
|
"sl_abt_multi_currency_eu-usd"
|
||||||
|
"sl_abt_trial_len_14d"
|
||||||
|
"sl_abt_trial_len_7d"
|
||||||
|
"sl_abt_trial_len_30d"
|
||||||
|
"sl_utt"
|
||||||
|
"sl_utt_trial_len"
|
||||||
|
"sl_utt_multi_currency"
|
||||||
|
]
|
||||||
|
|
||||||
App.factory "abTestManager", ($http, ipCookie) ->
|
App.factory "abTestManager", ($http, ipCookie) ->
|
||||||
|
|
||||||
|
_.each oldKeys, (oldKey)->
|
||||||
|
ipCookie.remove(oldKey)
|
||||||
|
|
||||||
_buildCookieKey = (testName, bucket)->
|
_buildCookieKey = (testName, bucket)->
|
||||||
key = "sl_abt_#{testName}_#{bucket}"
|
key = "sl_abt_#{testName}_#{bucket}"
|
||||||
console.log key
|
console.log key
|
||||||
|
|
Loading…
Reference in a new issue