tobiashochguertel / c4-draw.io

C4 Modelling little bit easier
https://tobiashochguertel.github.io/c4-draw.io/
GNU General Public License v3.0
794 stars 105 forks source link

I can’t get the plugin to load though (see screenshot). #1

Closed tobiashochguertel closed 7 years ago

tobiashochguertel commented 7 years ago

Oh cool, that looks useful! I can’t get the plugin to load though (see screenshot).

din2ixdxgaanow8

Reported by: https://twitter.com/simonbrown/status/901694241587519488

tobiashochguertel commented 7 years ago

It works in Safari (just not Chrome). :-)

din4yylxgaabe5z

wimdeblauwe commented 7 years ago

I can confirm it works with Safari, but does not work with Chrome.

tobiashochguertel commented 7 years ago

@wimdeblauwe okay, I can provide currently only the solution to open draw.io with "https=0" e.g. http://www.draw.io/?splash=0&https=0 and to provide the 'c4.js' from localhost e.g. image

To get a quick http server you can use npm install -g http-server and run it from your working copy of this repository: http-server

0 hochguertelto@Tobiass-MBP:~/Projekte/03_other/c4-draw.io/Users/hochguertelto/Projekte/03_other/c4-draw.io (master=)
$ http-server
Starting up http-server, serving ./
Available on:
  http://127.0.0.1:8080
  http://192.168.0.189:8080
  http://172.16.48.1:8080
  http://172.16.194.1:8080
Hit CTRL-C to stop the server

But may be it run's in chrome only by setting 'https=0' Parameter in the url?

I have not had the time yet to continue the work on the plugin and to check what is the reason for this bug - may be it is possible to serv the c4.js file via github pages instead of github-raw file access. I plan to continue the work in this week.

I hope this helps?

tobiashochguertel commented 7 years ago

@wimdeblauwe I have created the github pages, I think this is the best solution: https://tobiashochguertel.github.io/c4-draw.io/c4.js

I have quick check this and it works for me, but can you give this a try?

wimdeblauwe commented 7 years ago

I can confirm it works by just using https://tobiashochguertel.github.io/c4-draw.io/c4.js as plugin url. Thx!

tobiashochguertel commented 7 years ago

@wimdeblauwe thanks for the Feedback. I changed the Link in the Readme.md file. I think this was not really a software bug - more an thing that I have used raw.github.com as an CDI which it isn't. I close this bug issue now.