mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:38:00 +01:00
undo createFixedURI for now as PlacesUIUtils is firefox only and the IO module is a general liberator thing
This commit is contained in:
@@ -758,7 +758,8 @@ lookup:
|
||||
}
|
||||
|
||||
liberator.echomsg("sourcing \"" + filename + "\"", 2);
|
||||
let uri = PlacesUIUtils.createFixedURI(file.path).spec
|
||||
|
||||
let str = ioManager.readFile(file);
|
||||
|
||||
// handle pure javascript files specially
|
||||
if (/\.js$/.test(filename))
|
||||
@@ -767,7 +768,7 @@ lookup:
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||
try
|
||||
{
|
||||
loader.loadSubScript(uri, liberator)
|
||||
loader.loadSubScript("file://" + file.path, liberator)
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
@@ -777,11 +778,10 @@ lookup:
|
||||
}
|
||||
else if (/\.css$/.test(filename))
|
||||
{
|
||||
liberator.storage.styles.registerSheet(uri, !silent, true);
|
||||
liberator.storage.styles.registerSheet("file://" + file.path, !silent, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
let str = ioManager.readFile(file);
|
||||
let heredoc = "";
|
||||
let heredocEnd = null; // the string which ends the heredoc
|
||||
let lines = str.split("\n");
|
||||
|
||||
@@ -28,7 +28,7 @@ the provisions above, a recipient may use your version of this file under
|
||||
the terms of any one of the MPL, the GPL or the LGPL.
|
||||
}}} ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!--?xml-stylesheet href="chrome://browser/skin/" type="text/css"?-->
|
||||
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
||||
|
||||
<overlay id="muttator"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
||||
Reference in New Issue
Block a user