Skip to content

Commit bd50e11

Browse files
Merge pull request #2028 from Gauravjeetsingh/db-azure
Switch to azure url for database download
2 parents 8bd299c + 7b8b1b9 commit bd50e11

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

www/main/desktop_scripts.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = {
121121
isOnline().then((online) => {
122122
if (online) {
123123
request(
124-
`https://banidb.com/databases/${database[dbPlatform].md5}`,
124+
`https://banidb.blob.core.windows.net/database/${database[dbPlatform].md5}`,
125125
(error, response, newestDBHash) => {
126126
if (!error && response.statusCode === 200) {
127127
const curDBHash = store.get('curDBHash');
@@ -131,7 +131,9 @@ module.exports = {
131131
database[dbPlatform].dbCompressedName,
132132
);
133133
progress(
134-
request(`https://banidb.com/databases/${database[dbPlatform].dbCompressedName}`),
134+
request(
135+
`https://banidb.blob.core.windows.net/database/${database[dbPlatform].dbCompressedName}`,
136+
),
135137
)
136138
.on('progress', (state) => {
137139
const win = remote.getCurrentWindow();

0 commit comments

Comments
 (0)