1 var timestamp = new Date();
2 localStorage.setItem("request_shell_access",
3 "A request for shell access was sent on " +
4 timestamp.toLocaleDateString() +
6 timestamp.toLocaleTimeString());
7 // The storage event gets triggered automatically in _other_ windows
8 // when we hit localStorage, but we also need to fire it manually in
10 $(document).trigger('storage');