diff --git a/oauth/idp_auth.html b/oauth/idp_auth.html index 71fd991..42cda9f 100644 --- a/oauth/idp_auth.html +++ b/oauth/idp_auth.html @@ -43,14 +43,13 @@ if (window.skip_idp_confirm) return post_auth(session_id); - const confirmation = confirm('Log in at the external service?'); - if (confirmation){ + if (confirm('Log in at the external service?')){ window.localStorage.setItem(window.store_idp_skip_tpl + window.consumer_id, true); post_auth(session_id); } else { console.log('Redirecting a user to login...'); - window.localStorage.setItem(window.store_redir_key, saved_redir_url); + window.localStorage.removeItem(window.store_redir_key); window.location.href = window.login_url; } } else { diff --git a/src_js/third_party/cifplayer.js b/src_js/third_party/cifplayer.js index ae5cec9..cff4bb9 100644 --- a/src_js/third_party/cifplayer.js +++ b/src_js/third_party/cifplayer.js @@ -5505,7 +5505,7 @@ var $; case 'OPTIMADE': return this.$.$mpds_cifplayer_matinfio_optimade_to_obj(this.source.data); case 'OPTIMADE_str': return this.$.$mpds_cifplayer_matinfio_optimade_str_to_obj(this.source.data); } - return this.$.$mol_fail(new $mol_data_error('Error: file format not recognized')); + return this.$.$mol_fail(new $mol_data_error('No structure found')); } player() { return this.$.$mpds_cifplayer_matinfio_player_from_obj(this.internal_obj());