Fable Samples Page is broken

Created on 27 Jul 2016  路  7Comments  路  Source: fable-compiler/Fable

Description

It doesn't display anything when Adblock is turned on.

Repro steps

  1. Install Adblock and navigate to https://fsprojects.github.io/Fable/samples.html

    Expected behavior

screen shot 2016-07-26 at 6 54 14 pm

Actual behavior

screen shot 2016-07-26 at 6 54 23 pm

Known workarounds

Disable Adblock

Related information

N/A

All 7 comments

Have you tried reporting this as an Adblock issue? I think there is absolutely nothing odd about the samples page that should make Adblock think this is an ad...

I think I figured out why.

[blocked] The page at https://fsprojects.github.io/Fable/samples.html was
 not allowed to run insecure content from ws://fsprojects.github.io/websocket.

It's on this part

function init() {
          try {
            websocket = new WebSocket("ws://"+window.location.host+"/websocket");
            websocket.onmessage = function(evt) { location.reload(); };
          } catch(e) { /* For local development only */ }
}
window.addEventListener("load", init, false);

Nice catch @leolorenzoluis! @tpetricek, is there an easy way to make that part appear only when building the website locally? Thanks!

I still have this problem.
My investigations showed that AdBlock reacts on fb-content class.
Maybe another class prefix without a clash with some social network would be better ;)

Thanks a lot for the tip @mexx! I'll try to fix it when updating the documentation. This is probably the same as #574.

I tried to change all fb- CSS classes to fable-, but that broke the styles 馃槥 Maybe @tpetricek can help here?

@alfonsogarciacaro I think you can close this one now :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alfonsogarciacaro picture alfonsogarciacaro  路  30Comments

SCullman picture SCullman  路  49Comments

bilkusg picture bilkusg  路  28Comments

matthid picture matthid  路  29Comments

alfonsogarciacaro picture alfonsogarciacaro  路  26Comments