simile-widgets / timeline

Other
72 stars 28 forks source link

Fix for Mixed Content Errors #10

Open vab opened 1 year ago

vab commented 1 year ago

What does this PR do? This code clears mixed content errors during the load of the Simile Timeline API.

Helpful background context If a developer was running off an https served website and using a modern browser (such as Chromium or Brave), hard coded http URLs were causing CSS related rendering problems and a failure to load the Timeline library. These errors occurred because the browser was automatically blocking mixed content loading. By changing loading statements to protocol agnostic URLs the errors can be avoiding while still allowing Timeline to run over either http and https.

This PR has the minimum changes required to correct the errors and allow Timeline to load and render properly. I will submit an additional PR, with many more code changes, that updates the documentation and addresses other issues in the code with mixed content.

What are the relevant tickets? https://groups.google.com/g/simile-widgets/c/8MoBsyyY5v4

Includes new or updated dependencies? NO