Skip to content

Commit 4700df5

Browse files
committed
bah
1 parent 1fb43cb commit 4700df5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ function initTogetherJS() {
139139
$("#togetherjsStatus").html("Please wait ... loading shared session");
140140
}
141141

142+
143+
// clear your name from the cache every time to prevent privacy leaks
144+
if (supports_html5_storage()) {
145+
localStorage.removeItem('togetherjs.settings.name');
146+
}
147+
148+
142149
// This event triggers when you first join a session and say 'hello',
143150
// and then one of your peers says hello back to you. If they have the
144151
// exact same name as you, then change your own name to avoid ambiguity.

0 commit comments

Comments
 (0)