indexeddb cache kind of works but buggy and incomplete
This commit is contained in:
@@ -483,6 +483,7 @@ class TinodeWeb extends React.Component {
|
|||||||
|
|
||||||
if (promise) {
|
if (promise) {
|
||||||
promise.then((ctrl) => {
|
promise.then((ctrl) => {
|
||||||
|
console.log("doLogin->then", ctrl);
|
||||||
if (ctrl.code >= 300 && ctrl.text === 'validate credentials') {
|
if (ctrl.code >= 300 && ctrl.text === 'validate credentials') {
|
||||||
this.setState({loadSpinnerVisible: false});
|
this.setState({loadSpinnerVisible: false});
|
||||||
if (cred) {
|
if (cred) {
|
||||||
|
|||||||
@@ -5015,6 +5015,8 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
|||||||
|
|
||||||
if (promise) {
|
if (promise) {
|
||||||
promise.then(ctrl => {
|
promise.then(ctrl => {
|
||||||
|
console.log("doLogin->then", ctrl);
|
||||||
|
|
||||||
if (ctrl.code >= 300 && ctrl.text === 'validate credentials') {
|
if (ctrl.code >= 300 && ctrl.text === 'validate credentials') {
|
||||||
this.setState({
|
this.setState({
|
||||||
loadSpinnerVisible: false
|
loadSpinnerVisible: false
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+381
-106
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user