Added override message for session edits.
This commit is contained in:
parent
96809cabec
commit
eaf366ca33
|
@ -4,8 +4,8 @@ Easy Session Manager allows you to manage your Firefox session by backing up or
|
|||
# Download
|
||||
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
|
||||
|
||||
# Version: 0.0.6
|
||||
Improved loading of sessions.
|
||||
# Version: 0.0.7
|
||||
Added override message for session edits.
|
||||
|
||||
# Images
|
||||
![1 Default interface with no sessions. ](images/pic1.png)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": " Easy Session Manager",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"description": " Easy Session Manager allows you to manage your Firefox session by backing up or loading your saved sessions.",
|
||||
|
||||
"applications": {
|
||||
|
|
|
@ -19,6 +19,7 @@ const alertMessage = (type, message) => {
|
|||
msgTag.style.backgroundColor = bgColor;
|
||||
msgTag.style.color = fontColor;
|
||||
msgTag.style.display = "block";
|
||||
msgTag.innerHTML = "";
|
||||
msgTag.append(text);
|
||||
|
||||
setTimeout(function () {
|
||||
|
@ -65,8 +66,17 @@ const saveSession = () => {
|
|||
}
|
||||
|
||||
const saveToStorage = (name, data) => {
|
||||
storage.set({[name]: data});
|
||||
storage.get(name).then((storageResults) => {
|
||||
let json = null;
|
||||
try {
|
||||
json = JSON.parse(storageResults[name]);
|
||||
alertMessage("success", "Overwrote session...");
|
||||
} catch (e) {
|
||||
alertMessage("success", "Saved session...");
|
||||
} finally {
|
||||
storage.set({[name]: data});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const importSession = () => {
|
||||
|
|
Loading…
Reference in New Issue