brettmarl / wct-status

0 stars 0 forks source link

printable tides broken on mobile #98

Open brettmarl opened 10 months ago

brettmarl commented 10 months ago

Started adding new printables tides - works on web, but broken on Webkit/mobile environments - suspect due to react-to-print using an IFRAME under the hood that fails based on some kind of cross-origin security policy.

For mobile, consider ditching the hidden-table print method and redirect to a printable page maybe? or bail on print from mobile - not sure how reliable that is anyway...

Could also just host a basic page on wct.app/print that asks for a date and renders a printable page vs. try and make it part of the app..