mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-07 07:33:16 +00:00
Support base tag again.
Reviewed by me.
This commit is contained in:
1 parent
972909902e
commit
ac2885afc6
1 file changed
+9
-1
@@ -31,7 +31,7 @@ require("file");
|
||||
|
||||
cwd: function()
|
||||
{
|
||||
return FILE.dirname(window.location.pathname);
|
||||
return FILE._cwd;
|
||||
},
|
||||
|
||||
normal: function(/*String*/ aPath)
|
||||
@@ -101,6 +101,14 @@ require("file");
|
||||
return FILE.normal(aPath).split("/");
|
||||
}
|
||||
}
|
||||
|
||||
var DOMBaseElement = document.getElementsByTagName("base")[0];
|
||||
|
||||
if (DOMBaseElement)
|
||||
FILE._cwd = FILE.dirname(DOMBaseElement.getAttribute("href"));
|
||||
else
|
||||
FILE._cwd = FILE.dirname(window.location.pathname);
|
||||
|
||||
#endif
|
||||
|
||||
StaticResourceNode.FileType = 0;
|
||||
|
||||
Reference in new issue
Block a user