aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-08-21 18:50:12 +0200
committerRobert Jaros <rjaros@finn.pl>2018-08-21 18:50:12 +0200
commitdb000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1 (patch)
tree4e247127d5f286b5388a5b035d7cc5a011eeaf27 /src/main
parent05c5979106cabdd1ae092bde1fde671891aaf50f (diff)
downloadkvision-db000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1.tar.gz
kvision-db000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1.tar.bz2
kvision-db000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1.zip
Optional dependency fix.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/KVManager.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
index b0e9ea6f..40cc1053 100644
--- a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
@@ -247,7 +247,10 @@ internal object KVManager {
require("handlebars/dist/handlebars.runtime.min.js")
} catch (e: Throwable) {
}
- private val jed = require("jed")
+ private val jed = try {
+ require("jed")
+ } catch (e: Throwable) {
+ }
internal val fecha = require("fecha")
private val sdPatch = Snabbdom.init(
arrayOf(