mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
event for logout
This commit is contained in:
@@ -180,3 +180,15 @@ document.addEventListener('qortalExtensionRequests', async (event) => {
|
||||
}
|
||||
// Handle other request types as needed...
|
||||
});
|
||||
|
||||
|
||||
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
|
||||
console.log({message})
|
||||
if (message.type === "LOGOUT") {
|
||||
// Notify the web page
|
||||
window.postMessage({
|
||||
type: "LOGOUT",
|
||||
from: 'qortal'
|
||||
}, "*");
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user