Skip to content

Commit

Permalink
Update plugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dakln committed Oct 17, 2024
1 parent a456ecc commit 87f3966
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions addon_base/plugin/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ const PLUGIN_CLASS = SDK.Plugins[ADDON_ID] = class LostPlugin extends SDK.IPlugi
this._info.AddRemoteScriptDependency(url);
})
SCRIPTS.forEach(script => {
this._info.AddFileDependency({ filename: `scripts/${script.filename}`, type: script.dependencyType });
if (script.scriptType) {
this._info.AddFileDependency({ filename: `scripts/${script.filename}`, type: script.dependencyType, scriptType: script.scriptType });
} else {
this._info.AddFileDependency({ filename: `scripts/${script.filename}`, type: script.dependencyType });
}
});
FILES.forEach(file => {
this._info.AddFileDependency({ filename: `files/${file.filename}`, type: file.dependencyType });
if (file.fileType) {
this._info.AddFileDependency({ filename: `files/${file.filename}`, type: file.dependencyType, fileType: file.fileType });
} else {
this._info.AddFileDependency({ filename: `files/${file.filename}`, type: file.dependencyType });
}
});
const pps = [];
PLUGIN_PROPERTIES.forEach(pp => {
Expand Down

0 comments on commit 87f3966

Please sign in to comment.