Merge pull request #7012 from blockscout/vb-refactor-socket

Refactor socket.js
pull/7015/head
Victor Baranov 2 years ago committed by GitHub
commit 6825fe66c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 11
      apps/block_scout_web/assets/js/socket.js

@ -12,6 +12,7 @@
### Chore
- [#7012](https://github.com/blockscout/blockscout/pull/7012) - Refactor socket.js
- [#6960](https://github.com/blockscout/blockscout/pull/6960) - Add deploy + workflow for testing (bs-indexers-ethereum-goerli)
- [#6989](https://github.com/blockscout/blockscout/pull/6989) - Update bitwalker/alpine-elixir-phoenix: 1.13 -> 1.14
- [#6987](https://github.com/blockscout/blockscout/pull/6987) - Change tx actions warning importance
@ -73,6 +74,7 @@
- [#6966](https://github.com/blockscout/blockscout/pull/6966) - Bump solc from 0.8.18 to 0.8.19 in /apps/explorer
- [#6967](https://github.com/blockscout/blockscout/pull/6967) - Bump photoswipe from 5.3.5 to 5.3.6 in /apps/block_scout_web/assets
- [#6968](https://github.com/blockscout/blockscout/pull/6968) - Bump ex_rlp from 0.5.5 to 0.6.0
</details>
## 5.1.0-beta
@ -160,6 +162,7 @@
- [#6857](https://github.com/blockscout/blockscout/pull/6857) - Bump @amplitude/analytics-browser from 1.7.1 to 1.8.0 in /apps/block_scout_web/assets
- [#6847](https://github.com/blockscout/blockscout/pull/6847) - Bump @fortawesome/fontawesome-free from 6.2.1 to 6.3.0 in /apps/block_scout_web/assets
- [#6866](https://github.com/blockscout/blockscout/pull/6866) - Bump chart.js from 4.2.0 to 4.2.1 in /apps/block_scout_web/assets
</details>
## 5.0.0-beta

@ -1,15 +1,8 @@
import { Socket } from 'phoenix'
import { locale } from './locale'
import { commonPath } from './lib/path_helper'
const networkParhObj = document.getElementById('network-path')
let websocketRootUrl
if (networkParhObj) {
// @ts-ignore
websocketRootUrl = networkParhObj.value
}
if (!websocketRootUrl) {
websocketRootUrl = ''
}
let websocketRootUrl = commonPath
if (websocketRootUrl.endsWith('/')) {
websocketRootUrl = websocketRootUrl.slice(0, -1)
}

Loading…
Cancel
Save