mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 941487 - resetProfile.js shouldn't redefine Cu, r=MattN
This commit is contained in:
parent
1bd240a9a6
commit
0c568951d1
@ -4,7 +4,12 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
let Cu = Components.utils;
|
||||
// NB: this file can be loaded from aboutSupport.xhtml or from the
|
||||
// resetProfile.xul dialog, and so Cu may or may not exist already.
|
||||
// Proceed with caution:
|
||||
if (!("Cu" in window)) {
|
||||
window.Cu = Components.utils;
|
||||
}
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/ResetProfile.jsm");
|
||||
|
Loading…
Reference in New Issue
Block a user