Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SparkyT opened this issue Apr 24, 2018 · 9 comments
Open

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

SparkyT opened this issue Apr 24, 2018 · 9 comments

Comments

@SparkyT
Copy link

SparkyT commented Apr 24, 2018

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
@scripting
Copy link
Owner

scripting commented Apr 24, 2018 via email

@SparkyT
Copy link
Author

SparkyT commented Apr 25, 2018

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

@scripting
Copy link
Owner

scripting commented Apr 25, 2018 via email

@scripting
Copy link
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?

@scripting
Copy link
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.

@scripting
Copy link
Owner

scripting commented Apr 25, 2018

@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. ;-)

@SparkyT
Copy link
Author

SparkyT commented Apr 25, 2018

@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?

@scripting
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants