FeeFighters/samurai-js — Issue #3: Referencing with file:// causes browser errors
Author: jkrall
Created: 2012-01-10 15:25:01+00:00
State: open

file:// urls trigger browser security, and cause the RPC calls fail with cryptic error messages like:

```Line 4: Uncaught TypeError: Cannot read property '2' of null```

We should consider adding a `window.location` check in `Samurai.init()` that spits out a nice warning if the script is loaded on a page that is being served up statically via file://