shellDBus: Ignore extension properties that we don't care about

This commit is contained in:
Jasper St. Pierre 2011-11-15 16:46:17 -05:00
parent 65dec2b72a
commit 97e7ea0b5d

View File

@ -171,14 +171,14 @@ GnomeShell.prototype = {
let val = meta[key];
let type;
switch (typeof val) {
case 'object':
throw Error('Extension had a nested object in the metadata. This is not supported');
case 'string':
type = 's';
break;
case 'number':
type = 'd';
break;
default:
continue;
}
out[key] = GLib.Variant.new(type, val);
}