Skip to content

Commit 7b7374c

Browse files
committed
Using the correct APP_ID
1 parent e0d3fae commit 7b7374c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packet/templates/include/head.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@
3838
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
3939
<script>
4040
var OneSignal = window.OneSignal || [];
41+
{% if info.realm == "csh" %}
42+
var appId = "{{ config['ONESIGNAL_CSH_APP_ID'] }}";
43+
{% else %}
44+
var appId = "{{ config['ONESIGNAL_INTRO_APP_ID'] }}";
45+
{% endif %}
4146
OneSignal.push(function () {
4247
OneSignal.init({
43-
appId: "{{ config['ONESIGNAL_APP_ID'] }}",
48+
appId: appId,
4449
autoResubscribe: true,
4550
allowLocalhostAsSecureOrigin: true,
4651
});

0 commit comments

Comments
 (0)