Skip to content

Commit 3e1671e

Browse files
authored
Merge pull request #28 from modos189/fix-custom-iitc
2 parents 1d053e4 + 1e07f5b commit 3e1671e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lib-iitc-manager",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"description": "Library for managing IITC plugins",
55
"main": "src/index.js",
66
"type": "module",

src/worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ export class Worker {
371371
const iitc_code = await this._getUrl(this.network_host[this.channel] + '/total-conversion-build.user.js');
372372
if (iitc_code) {
373373
const iitc_core = parseMeta(iitc_code);
374+
iitc_core['uid'] = getUID(iitc_core);
374375
iitc_core['code'] = iitc_code;
375376
await this._save({
376377
iitc_core: iitc_core,
@@ -603,6 +604,7 @@ export class Worker {
603604
if (plugin_uid in data) {
604605
data[plugin_uid]['status'] = plugins_user[plugin_uid]['status'];
605606
data[plugin_uid]['code'] = plugins_user[plugin_uid]['code'];
607+
data[plugin_uid]['user'] = true;
606608
data[plugin_uid]['override'] = true;
607609
} else {
608610
data[plugin_uid] = plugins_user[plugin_uid];

test/manager.2.external.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ describe('manage.js external plugins integration tests', function () {
497497
it('Check getIITCCore() for standard IITC', async function () {
498498
const script = await manager.getIITCCore();
499499
expect(script, 'getIITCCore()').to.have.all.keys(
500+
'uid',
500501
'author',
501502
'code',
502503
'description',

0 commit comments

Comments
 (0)