Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

node removeChild hackaround #1372

Closed
wants to merge 1 commit into from
Closed

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Sep 1, 2021

Summary

Closes #1304 and closes #1298

removeChild from node due to google manipulating the DOM via translate extension

There is no longer an error but there is a new one logged to indiciate what is happening. Can easily be removed (the error) and perhaps made into a warning or just a log:
image

To Test

  1. Open this pr build
  2. via Google Translate extension set language to kurdish or sth else
  3. open token picker, choose token//use the app
  4. doesnt crash
  5. check error logs for error in screenshot

Background

this is a google/extension external mutation messing with our code.

@W3stside W3stside requested review from alfetopito, anxolin, fairlighteth and a team September 1, 2021 13:59
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2021

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@elena-zh
Copy link

elena-zh commented Sep 1, 2021

Hey @W3stside , the app is not crashed when it is translated to another language.. Btw, I can't remember when I laughed so loud last time as today when reading Russian app translations provided by Google =)

I was able to run buy/sell order , wrap/unwrap and approve token transactions.
I was not able to run cancel transactions due to #1373 issue.

The only thing is that balances in the from token are not updated/look like double balances when change tokens
balance

Copy link
Contributor

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Brave: bug is present on prod, not present on this PR
Tested on Firefox with this addon https://addons.mozilla.org/en-US/firefox/addon/traduzir-paginas-web/: works fine on both prod and PR

@W3stside
Copy link
Contributor Author

W3stside commented Sep 6, 2021

This was cherry-picked into hotfix 1.1.1, closing..

@W3stside W3stside closed this Sep 6, 2021
@W3stside W3stside deleted the removeChild-workaround branch December 16, 2021 10:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants