瀏覽代碼

still not work menu for restarting

pull/1/head
10sr 12 年之前
父節點
當前提交
692d9a8b35
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      .keysnail.js

+ 1
- 2
.keysnail.js 查看文件

@@ -241,8 +241,7 @@ ext.add("restart-firefox-add-menu", function(){
var elm = document.createElementNS(XUL_NS, "menuitem");
elm.setAttribute("label", "Restart Firefox");
elm.setAttribute("id", "menu_RestartFirefoxKs")
elm.setAttribute("oncommand", function(){
ext.exec("restart-firefox");});
elm.setAttribute("oncommand", "ext.exec('restart-firefox');");
var menu = document.getElementById("menu_FilePopup");
// menu.insertBefore(elm, menu.getElementById("menu_FileQuitItem"));
menu.appendChild(elm);


Loading…
取消
儲存