Commit 048a6c7b authored by Robert Knight's avatar Robert Knight

Remove unnecessary fallback value for `Object.keys` call

The `options` field is always initialized to an object, so the `|| {}`
is not necessary.
parent 1f7174f6
...@@ -139,7 +139,7 @@ export default class Guest extends Delegator { ...@@ -139,7 +139,7 @@ export default class Guest extends Delegator {
this._connectAnnotationUISync(this.crossframe); this._connectAnnotationUISync(this.crossframe);
// Load plugins // Load plugins
for (let name of Object.keys(this.options || {})) { for (let name of Object.keys(this.options)) {
const opts = this.options[name]; const opts = this.options[name];
if (!this.plugins[name] && this.options.pluginClasses[name]) { if (!this.plugins[name] && this.options.pluginClasses[name]) {
this.addPlugin(name, opts); this.addPlugin(name, opts);
......
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