Skip to content

Commit f95d887

Browse files
committed
feat: Enabling Test and Dev environment settins
1 parent f94f621 commit f95d887

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

_assets/js/feedback.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ $(document).ready(function () {
135135
$('.feedback .feedback-send-data-button').on('click', function () {
136136
$(feedbackProps.feedbackMoreInfoSelector).addClass('hide');
137137

138+
var endpoint = "https://baas.kinvey.com/rpc/" + kinveyAppKey + "/custom/saveFeedback"
138139
if (getFeedbackComment()) {
139140
$.ajax({
140-
url: "https://baas.kinvey.com/rpc/kid_Hk57KwIFf/custom/saveFeedback",
141+
url: endpoint,
141142
method: "POST",
142143
dataType: "json",
143144
contentType: "application/json; charset=utf-8",

_layouts/default.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,10 @@
7070
<script src="https://kendo.cdn.telerik.com/{{ site.cdnVersion | default: '2018.3.1017' }}/js/kendo.web.min.js"></script>
7171
</head>
7272

73-
{% if site.environment != 'production' %}
74-
{% capture environment_class %}environment-{{ site.environment }}{% endcapture %}
75-
{% endif %}
7673
{% if page.brand %}
77-
<body role="document" class="layout-{{ page.layout }} brand brand-{{ page.brand }} {{ environment_class }}">
74+
<body role="document" class="layout-{{ page.layout }} brand brand-{{ page.brand }}">
7875
{% else %}
79-
<body role="document" class="layout-{{ page.layout }} brand {{ environment_class }}">
76+
<body role="document" class="layout-{{ page.layout }} brand">
8077
{% endif %}
8178

8279
<!-- Google Tag Manager -->
@@ -85,6 +82,7 @@
8582
<!-- End Google Tag Manager -->
8683

8784
<script>
85+
kinveyAppKey = {% if site.environment == 'test' or site.environment == 'dev' %} "kid_ryN3aCy9M" {% else %} "kid_Hk57KwIFf" {% endif %};
8886
hasDataLang = {% if site.code_lang == true %} true {% else %} false {% endif %};
8987
{% if site.has_web_api == true or site.has_web_api_index == true %}
9088
{% if page.kind == 'api'%}

0 commit comments

Comments
 (0)