Skip to content

Commit

Permalink
removed dexie import
Browse files Browse the repository at this point in the history
multiple dexie imports were causing instanceof Dexie calls to fail
connects unicef/etools-issues#1020
  • Loading branch information
daniel-tabarcea committed Feb 20, 2018
1 parent a0c6852 commit 89f132c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"license": "https://github.com/unicef-polymer/etools-behaviors/blob/master/LICENSE.md",
"main": "etools-behaviors-demo-helper",
"dependencies": {
"polymer": "Polymer/polymer#^2.0.0",
"dexie": "^2.0.1"
"polymer": "Polymer/polymer#^2.0.0"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^3.0.0",
Expand Down
5 changes: 4 additions & 1 deletion etools-page-refresh-mixin.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<link rel="import" href="scripts/dexie.html">
<link rel="import" href="etools-logs-mixin.html">
<script>
/*
Expand Down Expand Up @@ -28,6 +27,10 @@
}

refresh() {
if (!Dexie) {
this.logError('Dexie not imported', 'etools-page-refresh-mixin');
}

this.refreshInProgress = true;
// **Important : Do not clear localStorage before Dexie db ,
// because for Firefox, IE, Edge and Safari, Dexie stores the db names
Expand Down
1 change: 0 additions & 1 deletion scripts/dexie.html

This file was deleted.

0 comments on commit 89f132c

Please sign in to comment.