Commit 915bdc80 authored by Randall Leeds's avatar Randall Leeds

Move double embed protection to embed.js

Logically, it makes sense to prevent double _embedding_ in the embed
code.

Also, there may come a time when it's acceptable and possible to
instantiate the application multiple times for different parts of a
document.

Finally, this prevents loading CSS and polyfills twice, as well.
parent a8a74a25
if (window.annotator) {
// Not deploying app, in order to avoid double deployment
return;
}
var Annotator = require('annotator');
// Monkeypatch annotator!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment