Revision 63532e78 programs/firefoxextension/content/odf.html

b/programs/firefoxextension/content/odf.html
72 72
    runtime.loadClass("core.Base64");
73 73
    var toolbar = document.getElementById("toolbar");
74 74
    addButton(toolbar, "download", function onclick() {
75
        var wf = webodffirefox,
76
            base64 = new core.Base64(),
77
            b64 = base64.convertUTF8ArrayToBase64(wf.data);
78
        b64 = "data:application/octet;base64," + b64;
79
        window.location.href = b64;
75
        window.location.href = webodffirefox.url + "#download";
80 76
    });
81 77
}
82 78
window.setTimeout(function () {
83 79
    init();
84
}, 0);
80
}, 1);
85 81
//--></script>
86 82
  <title></title>
87 83
</head>

Also available in: Unified diff