X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=aboutMandelbrot.js;h=839d0097aa55055374dd80e4b9de2ac850f4cdee;hp=b52f3fccb6253552621abe0dbf1f75d0239c00db;hb=1b09b217b456d90777763d839d09010a4309ee78;hpb=3fd66836e6c5fbd25dd8f90dd50914cabeb7a9a7 diff --git a/aboutMandelbrot.js b/aboutMandelbrot.js index b52f3fc..839d009 100644 --- a/aboutMandelbrot.js +++ b/aboutMandelbrot.js @@ -35,7 +35,7 @@ * * ***** END LICENSE BLOCK ***** */ -//Components.utils.import("resource://gre/modules/Services.jsm"); +Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); function AboutMandelbrot() { } @@ -50,12 +50,8 @@ AboutMandelbrot.prototype = { }, newChannel: function(aURI) { - //let channel = Services.io.newChannel("chrome://mandelbrot/content/mandelbrot-tab.xul", - // null, null); - let ios = Components.classes["@mozilla.org/network/io-service;1"] - .getService(Components.interfaces.nsIIOService); - let channel = ios.newChannel("chrome://mandelbrot/content/mandelbrot-tab.xul", - null, null); + let channel = Services.io.newChannel("chrome://mandelbrot/content/mandelbrot.xul", + null, null); channel.originalURI = aURI; return channel; }