Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #457 from NeuralGalaxy/stack-box-downloader
Browse files Browse the repository at this point in the history
Stack box downloader
  • Loading branch information
zhengzedong authored Aug 15, 2023
2 parents fb25ae5 + 075109c commit 72ca49d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
test:
runs-on: ubuntu-18.04 # runs a test on Ubuntu, Windows and macOS
runs-on: [self-hosted, linux, x64, aws-us] # runs a test on Ubuntu, Windows and macOS
steps:
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngiq/brainbrowser",
"version": "2.9.5",
"version": "2.9.6",
"license": "GNU Affero GPL 3.0",
"devDependencies": {
"bower": "~1.8.8",
Expand Down
9 changes: 9 additions & 0 deletions src/brainbrowser/lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
} catch (e) {
/* pako probably didn't recognize this as gzip.
*/
try {
if (content_type === "text") {
var dv = new DataView(result);
var decoder = new TextDecoder();
result = decoder.decode(dv);
}
} catch (error) {
//
}
} finally {
try {
if (canCache) {
Expand Down

0 comments on commit 72ca49d

Please sign in to comment.