File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
analytics-kotlin-live/src/main/java/com/segment/analytics/liveplugins/kotlin Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ data class LivePluginsSettings(
3939class LivePlugins (
4040 private val fallbackFile : InputStream ? = null ,
4141 private val forceFallbackFile : Boolean = false ,
42- exceptionHandler : JSExceptionHandler ? = null
42+ exceptionHandler : JSExceptionHandler ? = null ,
43+ private val localJS : List <InputStream > = listOf()
4344) : EventPlugin, WaitingPlugin {
4445 override val type: Plugin .Type = Plugin .Type .Utility
4546
@@ -135,6 +136,10 @@ class LivePlugins(
135136 d.prepare(engine)
136137 }
137138 engine.launch (global = true ) {
139+ for (js in localJS) {
140+ loadBundle(js)
141+ }
142+
138143 loadBundle(file.inputStream()) { error ->
139144 if (error != null ) {
140145 analytics.log(error.message ? : " " )
You can’t perform that action at this time.
0 commit comments