зеркало из https://github.com/mozilla/pjs.git
Bug 561839 - import PlacesUtils.jsm instead of utils.js [r=mconnor]
Try the new PlacesUtils file before the old utils.js.
This commit is contained in:
Родитель
2a2cbfbad2
Коммит
0c62a45494
|
@ -46,7 +46,12 @@ const PARENT_ANNO = "weave/parent";
|
|||
const PREDECESSOR_ANNO = "weave/predecessor";
|
||||
const SERVICE_NOT_SUPPORTED = "Service not supported on this platform";
|
||||
|
||||
Cu.import("resource://gre/modules/utils.js");
|
||||
try {
|
||||
Cu.import("resource://gre/modules/PlacesUtils.jsm");
|
||||
}
|
||||
catch(ex) {
|
||||
Cu.import("resource://gre/modules/utils.js");
|
||||
}
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://weave/ext/Observers.js");
|
||||
Cu.import("resource://weave/util.js");
|
||||
|
|
Загрузка…
Ссылка в новой задаче