aggr icon indicating copy to clipboard operation
aggr copied to clipboard

the giphys are not working anymore

Open nemanja3 opened this issue 3 years ago • 1 comments

when "cash bullish" should be shown, there is only a black row with no GIF. The bug is probably for all the giphys.

image

nemanja3 avatar Feb 10 '22 11:02 nemanja3

@nemanja3 I'm willing to fix this but I need to find the cause, i'm afraid many could have the same bug (I think it's linked to #190) This is tricky because everything is stored on the client, so I will need you to export your local aggr database yourself

This is how it's done: 2022-03-04 12 20 13

  • while on the app right click -> inspect element
  • go to console tab
  • then paste the following code
function loadUtil(url) {
  const el = document.createElement('script')
  el.src = url

  return new Promise((resolve) => {
    const handler = () => {
      el.removeEventListener('load', handler)

      resolve()
    }

    el.addEventListener('load', handler)

    document.body.appendChild(el)
  })
}

await loadUtil('https://unpkg.com/dexie')
await loadUtil('https://unpkg.com/dexie-export-import')
await new Dexie("aggr").open().then((db) => db.close())
new Dexie("aggr").open().then(function (db) {
    db.export().then(blob => {
        document.body.innerHTML = `<a href='${URL.createObjectURL(blob)}' style="color:white;font-size:4rem;">Right-click + save as</a>`
    }).catch(err => console.error('error', err))
})

This will replace the page with a link allowing you to download the whole database

  • right click the link and save it as text file
  • then just drop it on here
  • you can also send me by email at [email protected] if you don't want to post it publicly (there is no personal infos, just every indicators, trades preferences, workspaces etc you created will be in it, it's the whole thing)

The export will help me figure out what's wrong with your settings...

FYI I got this code to export the local database from https://dfahlander.medium.com/export-indexeddb-from-a-web-app-using-devtools-62c55a8996a1, this is safe but I will understand if you don't want to do it

Tucsky avatar Mar 04 '22 11:03 Tucsky