I want to make a chrome extension that opens a popup that displays a website that has a game, but that also saves your progress in the game when the popup is closed. Everything works as far as having the popup display the website with the game, but when the popup closes, it reloads the page, hence getting rid of the game progress. How do I keep the website "open" even though the popup is closed? Here is my popup code:
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Games4Fun</title>
<style>
body { overflow:hidden; margin:0px; }
</style>
</head>
<body>
<iframe src="https://jsnes.fir.sh/" frameborder="no" scrolling="yes" width="400" height="300"></iframe>
</body></html>
Here is My Manifest.json Code:
{
"manifest_version": 2,
"name": "Games4Fun",
"version": "0.1",
"browser_action": {
"default_icon": "mario.png",
"default_popup": "popup.html"
}
}