mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add constructor capitalization rule
This commit is contained in:
parent
8e2ea6812a
commit
ec0adb895b
43 changed files with 103 additions and 94 deletions
|
@ -72,13 +72,13 @@ class PluginManager {
|
|||
throw new TypeError('Plugin definitions in window have to be an (async) function returning the plugin class');
|
||||
}
|
||||
|
||||
const pluginClass = await pluginDefinition();
|
||||
if (typeof pluginClass !== 'function') {
|
||||
const PluginClass = await pluginDefinition();
|
||||
if (typeof PluginClass !== 'function') {
|
||||
throw new TypeError(`Plugin definition doesn't return a class for '${pluginSpec}'`);
|
||||
}
|
||||
|
||||
// init plugin and pass basic dependencies
|
||||
plugin = new pluginClass({
|
||||
plugin = new PluginClass({
|
||||
events: Events,
|
||||
loading,
|
||||
appSettings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue