From db000e6176e6e49a6a3f6b50ddbb8f0e5ae771a1 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 21 Aug 2018 18:50:12 +0200 Subject: Optional dependency fix. --- src/main/kotlin/pl/treksoft/kvision/KVManager.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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( -- cgit