Skip to content

Some include files still point to http://fargo.io #23

Open

Description

@SparkyT

The following 4 files in the repo and on jsdelivr.net appear to have document.write calls to add scripts from http://fargo.io, not the new //cdn.jsdelivr.net locations causing https instances of river5 to not work as expected

  • includes/basicincludes2/beep.js
  • includes/riverBrowserIncludes/emojify.js
  • includes/riverBrowserIncludes/riverbrowser.js
  • includes/misc/riverbrowser.js

Activity

  1. scripting commented on Apr 24, 2018

    @scripting
    Owner
  2. SparkyT commented on Apr 25, 2018

    @SparkyT
    Author

    Good point - the document.write puts references to http resources which on https instances of river5 results in mixed content warnings and them being blocked. River5 then doesn't display rivers (see screenshot)
    river5-docwrite

  3. scripting commented on Apr 25, 2018

    @scripting
    Owner
  4. scripting commented on Apr 25, 2018

    @scripting
    Owner

    OK, to do this final (I hope) pass, I've set up a virgin River5 on my desktop.

    I'm looking at the home page in the browser. These are the files that are included at the top of the page.

    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/alertdialog.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/app.css
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/app.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/appprefs.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/askdialog.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/beep.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/bootstrap.css
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/bootstrap.min.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/confirmdialog.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/font-awesome.min.css"/>
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/ga.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/jBeep.min.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/jquery-1.9.1.min.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/menus.css
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/menus.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/strftime.js
    //cdn.jsdelivr.net/npm/river5/includes/basicincludes2/utils.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/api.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/dateFormat.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/emojify.css
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/emojify.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/markdownConverter.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/outlinebrowser.js
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/riverbrowser.css
    //cdn.jsdelivr.net/npm/river5/includes/riverBrowserIncludes/riverbrowser.js
    //fonts.googleapis.com/css?family=Rancho
    //fonts.googleapis.com/css?family=Ubuntu

    So these all look cool. The question is what document.writes do each of them trigger?

  5. scripting commented on Apr 25, 2018

    @scripting
    Owner

    BTW, I have steps-to-reproduce, and through the magic of jsdelivr, I believe I will be able to fix this problem without you having to test.

    I noticed the URL in your screen shot, a familiar one, with https instead of http.

    https://newriver5.glitch.me/

    Boom, that page doesn't load and when I look at the console there are the errors.

  6. scripting commented on Apr 25, 2018

    @scripting
    Owner

    @SparkyT -- in order to get this debugged, I need you to do an npm update on the server, to get the latest version of davereader. I just changed the default URL of the homepage and the dashboard page My CDN is being fussy about getting the latest version, this way is fairly foolproof.

    Thanks for all your help with this. Very cool. ;-)

  7. SparkyT commented on Apr 25, 2018

    @SparkyT
    Author

    @scripting - no problem, it's interesting being involved in something that someone else has created.

    npm update is done and it looks as though https://newriver5.glitch.me/ is now working.

    Given we have the chance now before it is really publicised do you want to change the glitch name from newriver5 to something else?

  8. scripting commented on Apr 25, 2018

    @scripting
    Owner

    @SparkyT -- this is great. ;-)

    1. Re the glitch name, obviously River5 is the best choice.

    2. Has someone already taken that name? If so any chance of getting them to relinquish it?

    3. Could you change "World News" to just "World" -- the news part is implicit, and it'll look more balanced if it's shorter.

    4. I'm surprised it works. There are still errors which I will fix, in the console. In the meantime it works, which is good. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions