mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 03:39:29 -04:00
Add initial file for popup
This commit is contained in:
15
app/assets/javascripts/timeoutPopup.js
Normal file
15
app/assets/javascripts/timeoutPopup.js
Normal file
@@ -0,0 +1,15 @@
|
||||
(function(global ) {
|
||||
"use strict";
|
||||
|
||||
var cookie = window.GOVUK.getCookie('notify_admin_session');
|
||||
|
||||
if (cookie) {
|
||||
window.alert("Session will expire: Cookie Value" + cookie);
|
||||
} else {
|
||||
window.alert('Session has expired');
|
||||
}
|
||||
console.log(cookie);
|
||||
|
||||
|
||||
})(window);
|
||||
|
||||
Reference in New Issue
Block a user