Skip to content

Commit

Permalink
Merge pull request #197 from burst-apps-team/develop
Browse files Browse the repository at this point in the history
Fix JS failing to load
  • Loading branch information
harryjph committed Jul 14, 2019
2 parents 324b006 + 64e2351 commit 8b0f9ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions html/ui/js/brs.encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var BRS = (function(BRS, $, undefined) {
if (BRS.rememberPassword) {
secretPhrase = _password;
}
else {
throw $.t("error_generate_public_key_no_password");
else {
throw $.t("error_generate_public_key_no_password");
}
}

Expand Down
24 changes: 13 additions & 11 deletions html/ui/js/brs.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,19 +234,21 @@ var BRS = (function(BRS, $, undefined) {
}
}

if (BRS.rememberPassword) {
secretPhrase = _password;
} else {
secretPhrase = data.secretPhrase;
}
if (type == "POST") {
if (BRS.rememberPassword) {
secretPhrase = _password;
} else {
secretPhrase = data.secretPhrase;
}

delete data.secretPhrase;
delete data.secretPhrase;

if (BRS.accountInfo && BRS.accountInfo.publicKey) {
data.publicKey = BRS.accountInfo.publicKey;
} else {
data.publicKey = BRS.generatePublicKey(secretPhrase);
BRS.accountInfo.publicKey = data.publicKey;
if (BRS.accountInfo && BRS.accountInfo.publicKey) {
data.publicKey = BRS.accountInfo.publicKey;
} else {
data.publicKey = BRS.generatePublicKey(secretPhrase);
BRS.accountInfo.publicKey = data.publicKey;
}
}

$.support.cors = true;
Expand Down
3 changes: 0 additions & 3 deletions src/brs/db/sql/Db.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import brs.props.Props;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import io.reactivex.Completable;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.schedulers.Schedulers;
import org.flywaydb.core.Flyway;
import org.flywaydb.core.api.configuration.FluentConfiguration;
import org.jooq.DSLContext;
Expand Down

0 comments on commit 8b0f9ff

Please sign in to comment.