Fix saving feature
This commit is contained in:
parent
7074587114
commit
051f91c025
1 changed files with 8 additions and 2 deletions
|
@ -3,7 +3,10 @@ export function save_file(input) {
|
|||
}
|
||||
|
||||
export function load_file() {
|
||||
localStorage.getItem("last_item")
|
||||
let item = localStorage.getItem("last_item")
|
||||
if (item.length > 0) {
|
||||
return item
|
||||
}
|
||||
}
|
||||
|
||||
export function save_style(style) {
|
||||
|
@ -11,5 +14,8 @@ export function save_style(style) {
|
|||
}
|
||||
|
||||
export function load_style() {
|
||||
localStorage.getItem("last_style")
|
||||
let item = localStorage.getItem("last_style")
|
||||
if (item.length > 0) {
|
||||
return item
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue