summaryrefslogtreecommitdiffstats
path: root/model/manifest.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-03-07 13:53:07 -0600
committerGitHub <noreply@github.com>2018-03-07 13:53:07 -0600
commit03b6d1f652407fa9c3ec7e740e120a1c3e920de0 (patch)
treef6c65826fa497d51092c3115c93ec3dd44eaf6b6 /model/manifest.go
parente8943936c51450540a4f2e8e7a2f3a2af90d14db (diff)
downloadchat-03b6d1f652407fa9c3ec7e740e120a1c3e920de0.tar.gz
chat-03b6d1f652407fa9c3ec7e740e120a1c3e920de0.tar.bz2
chat-03b6d1f652407fa9c3ec7e740e120a1c3e920de0.zip
respect plugin manifest webapp bundle_path (#8393)
Diffstat (limited to 'model/manifest.go')
-rw-r--r--model/manifest.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/manifest.go b/model/manifest.go
index fdf69c2e6..32d4341cd 100644
--- a/model/manifest.go
+++ b/model/manifest.go
@@ -164,6 +164,11 @@ func (m *Manifest) ClientManifest() *Manifest {
cm.Name = ""
cm.Description = ""
cm.Backend = nil
+ if cm.Webapp != nil {
+ cm.Webapp = new(ManifestWebapp)
+ *cm.Webapp = *m.Webapp
+ cm.Webapp.BundlePath = "/static/" + m.Id + "_bundle.js"
+ }
return cm
}