Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Merge requests
!18
XX-4272 / Purge
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
XX-4272 / Purge
XX-4272/purge
into
release
Overview
0
Commits
15
Pipelines
0
Changes
8
Merged
Jono Wenger
requested to merge
XX-4272/purge
into
release
2 years ago
Overview
0
Commits
15
Pipelines
0
Changes
8
Expand
Add function to clear all persistent storage used by wasm.
0
0
Merge request reports
Compare
release
version 8
0b779364
2 years ago
version 7
bed18b03
2 years ago
version 6
e8389978
2 years ago
version 5
40939175
2 years ago
version 4
de9d3f10
2 years ago
version 3
f98140fc
2 years ago
version 2
7776a27f
2 years ago
version 1
5ddc38cb
2 years ago
release (base)
and
version 8
latest version
04444789
15 commits,
2 years ago
version 8
0b779364
13 commits,
2 years ago
version 7
bed18b03
11 commits,
2 years ago
version 6
e8389978
10 commits,
2 years ago
version 5
40939175
9 commits,
2 years ago
version 4
de9d3f10
8 commits,
2 years ago
version 3
f98140fc
7 commits,
2 years ago
version 2
7776a27f
6 commits,
2 years ago
version 1
5ddc38cb
5 commits,
2 years ago
8 files
+
299
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
indexedDb/init.go
+
8
−
0
Options
@@ -10,6 +10,7 @@
package
indexedDb
import
(
"gitlab.com/elixxir/xxdk-wasm/storage"
"syscall/js"
"github.com/hack-pad/go-indexeddb/idb"
@@ -146,5 +147,12 @@ func v1Upgrade(db *idb.Database) error {
return
err
}
// Get the database name and save it to storage
if
databaseName
,
err
:=
db
.
Name
();
err
!=
nil
{
return
err
}
else
if
err
=
storage
.
StoreIndexedDb
(
databaseName
);
err
!=
nil
{
return
err
}
return
nil
}
Loading