wssh icon indicating copy to clipboard operation
wssh copied to clipboard

Chrome shows blank after log in

Open bbhenry opened this issue 11 years ago • 3 comments

I am using the latest Chrome and once I log in with my ssh credential, that web page is blank with only the WSSH title bar left on top of the page. And I tested with Firefox which works fine.

Is there a way to adjust the terminal size? Font size?

Thanks,

Henry

bbhenry avatar Jun 14 '13 23:06 bbhenry

There might be an error in the JS code that prevents the page to load.

Could you open the Javascript Console of Chrome and try to reload the page? It should give you the error description.

Thanks,

  • A

aluzzardi avatar Jun 20 '13 16:06 aluzzardi

The error I get in the console is:

Refused to execute script from 'https://raw.github.com/chjj/tty.js/36717df8e96f35f4e2bd3fd585e9361f1439fc7e/static/term.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

mrijken avatar Jul 04 '13 19:07 mrijken

Apparently Chrome used to ignore MIME types until recently, but now Chrome does MIME type checking. As a result, Chrome refuses to execute stuff on raw.github.com (which has the non-executable type 'text/plain').

I was able to get rid of the error by downloading the file and linking to it locally. Once I did that, the terminal popped back up in Chrome and everything worked just fine.

Alternatively, some clever folks seem to have come up with https://rawgithub.com, which simply serves content from https://raw.github.com with the proper content types (though it's not to be used in production environments). So, just removing the first dot in the script URL should fix the issue as well.

mculhane avatar Jul 11 '13 07:07 mculhane