dextools-io / chart-widget

DEXTools chart widget docs
48 stars 8 forks source link

Multiple iframes on one Page #20

Open claudesoft opened 1 month ago

claudesoft commented 1 month ago

When I load multiple iframes on one page with different timeframes, they work correctly the first time I visit the page. However, upon reloading the page, every iframe displays the same timeframe. This appears to be caused by latestResolution being saved in the localStorage.

Steps to Reproduce Load a page with multiple iframes, each set to a different timeframe. Observe that the iframes display correctly. Reload the page. Notice that all iframes now show the same timeframe. Expected Behavior Each iframe should retain its specific timeframe even after the page is reloaded.

Sanher commented 1 month ago

Thank you for contacting us and for reporting. We will analyze the issue and work on a solution to show a resolution for every chart.

akitotoken commented 1 day ago

When I load multiple iframes on one page with different timeframes, they work correctly the first time I visit the page. However, upon reloading the page, every iframe displays the same timeframe. This appears to be caused by latestResolution being saved in the localStorage.

Steps to Reproduce Load a page with multiple iframes, each set to a different timeframe. Observe that the iframes display correctly. Reload the page. Notice that all iframes now show the same timeframe. Expected Behavior Each iframe should retain its specific timeframe even after the page is reloaded.

Do you use same ID for both html iframe elements?