Skip to content

Commit

Permalink
type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoYerkovichRP committed Sep 21, 2020
1 parent 3dd1b99 commit 114005a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/pubProvidedSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ import * as utils from '../src/utils.js';
const MODULE_NAME = 'pubProvided';

function addType(uid) {
if (!uid.ext.types) {
uid.ext.types = [];
}
if (!uid.ext.types.includes('ppuid')) {
if (!uid.ext) {
uid.ext = {
types: ['ppuid']
};
} else if (!uid.ext.types) {
uid.ext.types = ['ppuid'];
} else if (!uid.ext.types.includes('ppuid')) {
uid.ext.types.push('ppuid');
}
}
Expand Down

0 comments on commit 114005a

Please sign in to comment.