mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-21 11:01:48 +00:00
odeties with chrome replacing –...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f2b5d069c0
commit
c9b638c26d
@ -1004,12 +1004,14 @@ $(document).ready(function(){
|
|||||||
loadSettings()
|
loadSettings()
|
||||||
|
|
||||||
// setup download link...
|
// setup download link...
|
||||||
|
/*
|
||||||
$('#downloader')
|
$('#downloader')
|
||||||
.attr('href','data:text/octet-stream;base64,'+btoa(
|
.attr('href','data:text/octet-stream;base64,'+btoa(
|
||||||
JSON.stringify(buildJSON(true, true))
|
JSON.stringify(buildJSON(true, true))
|
||||||
// this is a really odd one, Chrome seems to replace some
|
// this is a really odd one, Chrome seems to replace some
|
||||||
// entities with actual chars...
|
// entities with actual chars...
|
||||||
.replace(/–/g, '–')))
|
.replace(/–/g, '–')))
|
||||||
|
*/
|
||||||
|
|
||||||
// upload...
|
// upload...
|
||||||
function handleFileSelect(evt) {
|
function handleFileSelect(evt) {
|
||||||
@ -1024,7 +1026,7 @@ $(document).ready(function(){
|
|||||||
reader.onload = (function(theFile) {
|
reader.onload = (function(theFile) {
|
||||||
return function(e) {
|
return function(e) {
|
||||||
console.log('loading...')
|
console.log('loading...')
|
||||||
console.log($.parseJSON(e.target.result))
|
window.JSON_DATA = e.target.result
|
||||||
loadJSON($.parseJSON(e.target.result), true)
|
loadJSON($.parseJSON(e.target.result), true)
|
||||||
console.log('done.')
|
console.log('done.')
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user