shellDBus: Ignore extension properties that we don't care about
This commit is contained in:
parent
65dec2b72a
commit
97e7ea0b5d
@ -171,14 +171,14 @@ GnomeShell.prototype = {
|
|||||||
let val = meta[key];
|
let val = meta[key];
|
||||||
let type;
|
let type;
|
||||||
switch (typeof val) {
|
switch (typeof val) {
|
||||||
case 'object':
|
|
||||||
throw Error('Extension had a nested object in the metadata. This is not supported');
|
|
||||||
case 'string':
|
case 'string':
|
||||||
type = 's';
|
type = 's';
|
||||||
break;
|
break;
|
||||||
case 'number':
|
case 'number':
|
||||||
type = 'd';
|
type = 'd';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
out[key] = GLib.Variant.new(type, val);
|
out[key] = GLib.Variant.new(type, val);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user