Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
fix login to unknown workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpyle committed Oct 23, 2018
1 parent 95cca6c commit 5f0421c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 0.12.1
#### Fixes
- Fix "Login to Unknown Workspace" button

### Version 0.12.0
#### Features
- DBL dot local handles downloads for licensed and open access entries
Expand Down
4 changes: 4 additions & 0 deletions app/containers/WorkspacesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ function getDblWebsiteUrl(workspace) {
}

function updateWorkspaceLastAccess(workspace) {
if (!workspace || !workspace.fullPath) {
// unknown workspace
return;
}
const lastAccessedTokenPath = path.join(workspace.fullPath, '.lastAccessed');
fs.ensureFileSync(lastAccessedTokenPath);
fs.removeSync(lastAccessedTokenPath);
Expand Down
2 changes: 1 addition & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nathanael",
"productName": "nathanael",
"version": "0.12.0",
"version": "0.12.1",
"description": "Electron frontend to DBL dot Local",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nathanael",
"productName": "nathanael",
"version": "0.12.0",
"version": "0.12.1",
"description": "Electron frontend to DBL dot Local",
"scripts": {
"build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",
Expand Down

0 comments on commit 5f0421c

Please sign in to comment.