conkeror: Add mozrepl initialization

This commit is contained in:
Tom Willemsen 2013-02-10 22:08:44 +01:00
parent b9e64b75ee
commit a1808fd44e

View file

@ -277,6 +277,19 @@ function read_url_local_port_handler(input)
read_url_handler_list = [read_url_local_port_handler, read_url_handler_list = [read_url_local_port_handler,
read_url_github_command_handler]; read_url_github_command_handler];
// Mozrepl
let (mozrepl_init = get_home_directory()) {
mozrepl_init.appendRelativePath(".mozrepl-conkeror.js");
session_pref('extensions.mozrepl.initUrl', make_uri(mozrepl_init).spec);
};
if ('@hyperstruct.net/mozlab/mozrepl;1' in Cc) {
let mozrepl = Cc['@hyperstruct.net/mozlab/mozrepl;1']
.getService(Ci.nsIMozRepl);
if (!mozrepl.isActive())
mozrepl.start(4242);
}
register_user_stylesheet( register_user_stylesheet(
"data:text/css," + "data:text/css," +
escape( escape(