mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 1078796 - Remove special purpose Matchstick filtering code r=wesj
This commit is contained in:
parent
d55f7227af
commit
b52b5db415
@ -25,8 +25,7 @@ var matchstickDevice = {
|
||||
id: "matchstick:dial",
|
||||
target: "urn:dial-multiscreen-org:service:dial:1",
|
||||
filters: {
|
||||
server: null,
|
||||
modelName: "Eureka Dongle"
|
||||
manufacturer: "openflint"
|
||||
},
|
||||
factory: function(aService) {
|
||||
Cu.import("resource://gre/modules/MatchstickApp.jsm");
|
||||
|
@ -87,19 +87,12 @@ var SimpleServiceDiscovery = {
|
||||
service.location = row.substr(10).trim();
|
||||
} else if (name.startsWith("ST")) {
|
||||
service.target = row.substr(4).trim();
|
||||
} else if (name.startsWith("SERVER")) {
|
||||
service.server = row.substr(8).trim();
|
||||
}
|
||||
}.bind(this));
|
||||
|
||||
if (service.location && service.target) {
|
||||
service.location = this._forceTrailingSlash(service.location);
|
||||
|
||||
// We add the server as an additional way to filter services
|
||||
if (!("server" in service)) {
|
||||
service.server = null;
|
||||
}
|
||||
|
||||
// When we find a valid response, package up the service information
|
||||
// and pass it on.
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user