diff --git a/webnotes/utils/bundlejs.py b/webnotes/utils/bundlejs.py
index c98221b21c..3a1af7b48e 100644
--- a/webnotes/utils/bundlejs.py
+++ b/webnotes/utils/bundlejs.py
@@ -122,9 +122,17 @@ class Bundle:
if os.path.exists("public/app.html"):
os.remove("public/app.html")
+ splash = ""
+ if os.path.exists("public/app/images/splash.svg"):
+ with open("public/app/images/splash.svg") as splash_file:
+ splash = splash_file.read()
+
with open('lib/public/html/app.html', 'r') as app_html:
data = app_html.read()
- data = data % {"_version_number": webnotes.generate_hash()}
+ data = data % {
+ "_version_number": webnotes.generate_hash(),
+ "splash": splash
+ }
with open('public/app.html', 'w') as new_app_html:
new_app_html.write(data)