2003/06/16 08:03:15
[org.ibex.core.git] / src / org / xwt / Proxy.java
index 0f86f33..876d35c 100644 (file)
@@ -114,22 +114,22 @@ public class Proxy {
                 if (Log.on) Log.log(Proxy.class, script);
             }
 
-           JS.CompiledFunction scr = JS.parse("PAC script at " + url, 0, new StringReader(script));
+            JS.CompiledFunction scr = JS.parse("PAC script at " + url, 0, new StringReader(script));
             scr.call(new JS.Array(), proxyAutoConfigRootScope);
             return (JS.Callable)proxyAutoConfigRootScope.get("FindProxyForURL");
         } catch (Exception e) {
             if (Log.on) {
                 Log.log(Platform.class, "WPAD detection failed due to:");
                 if (e instanceof JS.Exn) {
-                   try {
-                       org.xwt.js.JS.Array arr = new org.xwt.js.JS.Array();
-                       arr.addElement(((JS.Exn)e).getObject());
-                       // FIXME
-                       //XWT.recursivePrintObject.call();
-                   } catch (Exception e2) {
-                       Log.log(Platform.class, e);
-                   }
-               }
+                    try {
+                        org.xwt.js.JS.Array arr = new org.xwt.js.JS.Array();
+                        arr.addElement(((JS.Exn)e).getObject());
+                        // FIXME
+                        //XWT.recursivePrintObject.call();
+                    } catch (Exception e2) {
+                        Log.log(Platform.class, e);
+                    }
+                }
                 else Log.log(Platform.class, e);
             }
             return null;
@@ -172,9 +172,9 @@ public class Proxy {
 
     public static class ProxyAutoConfigRootScope extends JS.Scope {
 
-       public ProxyAutoConfigRootScope() { super(null); }
+        public ProxyAutoConfigRootScope() { super(null); }
         
-       // FIXME: needs "standard objects"
+        // FIXME: needs "standard objects"
 
         public Object get(Object name) {
             if (name.equals("isPlainHostName")) return isPlainHostName;