poi-plugin-akashic-records
Advanced tools
Comparing version 2.3.0-beta.0 to 2.3.0-beta.1
@@ -59,1 +59,3 @@ // Generated by CoffeeScript 1.9.3 | ||
require('./views'); | ||
require('./views/modal'); |
{ | ||
"name": "poi-plugin-akashic-records", | ||
"version": "2.3.0-beta.0", | ||
"version": "2.3.0-beta.1", | ||
"description": "logbook plugin for poi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,15 +40,22 @@ // Generated by CoffeeScript 1.9.3 | ||
showBattleDetail = function(timestamp) { | ||
var battleDetail; | ||
if (window.ipc != null) { | ||
var battleDetail, e; | ||
try { | ||
if (window.ipc == null) { | ||
throw "" + (__("Your POI is out of date! You may need to visit http://0u0.moe/poi to get POI's latest release.")); | ||
} | ||
battleDetail = ipc.access('BattleDetail'); | ||
if ((battleDetail != null ? battleDetail.showBattleWithTimestamp : void 0) != null) { | ||
timestamp = (new Date(timestamp)).getTime(); | ||
return battleDetail.showBattleWithTimestamp(timestamp, (function(_this) { | ||
return function(message) { | ||
if (message != null) { | ||
return console.log(message); | ||
} | ||
}; | ||
})(this)); | ||
if ((battleDetail != null ? battleDetail.showBattleWithTimestamp : void 0) == null) { | ||
throw "" + (__("In order to find the detailed battle log, you need to download the latest battle-detail plugin and enable it.")); | ||
} | ||
timestamp = (new Date(timestamp)).getTime(); | ||
return battleDetail.showBattleWithTimestamp(timestamp, (function(_this) { | ||
return function(message) { | ||
if (message != null) { | ||
return window.toggleModal("" + (__('Tip')), message); | ||
} | ||
}; | ||
})(this)); | ||
} catch (_error) { | ||
e = _error; | ||
return window.toggleModal("" + (__('Tip')), e); | ||
} | ||
@@ -55,0 +62,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2520432
44
59025