Browse Source

Clear linkAddress when user moves away from the page

dvemula 13 năm trước cách đây
mục cha
commit
925a06387e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      copylinkaddress.js

+ 1 - 0
copylinkaddress.js

@@ -31,5 +31,6 @@ $(function() {
         }
     });
 
+    // Clear linkAddress when user closes or moves away from the page
     window.onbeforeunload = clearLinkAddress();
 });