File size: 832 Bytes
19c8b95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict"

const preStartFn = (window, data) => {
    window.appLogger.log("preStartFn")
    console.log("preKeepSample")
}

const postStartFn = (window, data) => {
    window.appLogger.log("postStartFn")
    console.log("postStartFn")
}

const preKeepSample = (window, data) => {
    window.appLogger.log("preKeepSample", data)
    console.log("preKeepSample data", data)
}

const postKeepSample = (window, data) => {
    window.appLogger.log("postKeepSample")
    console.log("postKeepSample")
}

// Optional
// =======
const setup = () => {
    window.appLogger.log(`Setting up plugin. App version: ${window.appVersion}`)
    console.log("setup")
}
// =======

exports.preStartFn = preStartFn
exports.postStartFn = postStartFn
exports.preKeepSample = preKeepSample
exports.postKeepSample = postKeepSample
exports.setup = setup