mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 15:47:30 +09:00
parent
e619aeed91
commit
4760d34eee
1 changed files with 3 additions and 5 deletions
|
|
@ -16,8 +16,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
Components.utils.import("resource:///modules/openLocationLastURL.jsm", openLocationModule);
|
Components.utils.import("resource:///modules/openLocationLastURL.jsm", openLocationModule);
|
||||||
var gOpenLocationLastURL = new openLocationModule.OpenLocationLastURL(
|
var gOpenLocationLastURL = new openLocationModule.OpenLocationLastURL(window.opener);
|
||||||
window.opener);
|
|
||||||
|
|
||||||
function onLoad()
|
function onLoad()
|
||||||
{
|
{
|
||||||
|
|
@ -41,8 +40,7 @@ function onLoad()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var value = pref.getIntPref("general.open_location.last_window_choice");
|
var value = pref.getIntPref("general.open_location.last_window_choice");
|
||||||
var element = dialog.openWhereList.getElementsByAttribute(
|
var element = dialog.openWhereList.getElementsByAttribute("value", value)[0];
|
||||||
"value", value)[0];
|
|
||||||
if (element)
|
if (element)
|
||||||
dialog.openWhereList.selectedItem = element;
|
dialog.openWhereList.selectedItem = element;
|
||||||
dialog.input.value = gOpenLocationLastURL.value;
|
dialog.input.value = gOpenLocationLastURL.value;
|
||||||
|
|
@ -89,7 +87,7 @@ function openLocation(openData)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// Whichever target we use for the load, we allow third-party services to
|
// Whichever target we use for the load, we allow third-party services to
|
||||||
// fixup the URI
|
// fix up the URI
|
||||||
switch (dialog.openWhereList.value) {
|
switch (dialog.openWhereList.value) {
|
||||||
case "0":
|
case "0":
|
||||||
var webNav = Components.interfaces.nsIWebNavigation;
|
var webNav = Components.interfaces.nsIWebNavigation;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue