Permalink
Browse files

Docs: Added notes on CSP-restricted environments to README, see #593

  • Loading branch information...
dcodeIO committed Jan 2, 2017
1 parent 407223b commit a4e41b55471d83a8bf265c6641c3c6e0eee82e31
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
@@ -542,6 +542,7 @@ Compatibility
* Because the internals of this package do not rely on `google/protobuf/descriptor.proto`, options are parsed and presented literally.
* If typed arrays are not supported by the environment, plain arrays will be used instead.
* Support for pre-ES5 environments (except IE8) can be achieved by [using a polyfill](https://github.com/dcodeIO/protobuf.js/blob/master/scripts/polyfill.js).
* Support for [Content Security Policy](https://w3c.github.io/webappsec-csp/)-restricted environments (like Chrome extensions without [unsafe-eval](https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-eval)) can be achieved by generating and using static code instead.
* If you need a proper way to work with 64 bit values (uint64, int64 etc.), you can install [long.js](https://github.com/dcodeIO/long.js) alongside this library. All 64 bit numbers will then be returned as a `Long` instance instead of a possibly unsafe JavaScript number ([see](https://github.com/dcodeIO/long.js)).
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)

0 comments on commit a4e41b5

Please sign in to comment.