@miso.ai/client-sdk-ui 1.9.3-beta.0 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/workflow/ask.js +1 -1
- package/package.json +2 -2
- package/src/version.js +1 -1
- package/src/workflow/ask.js +1 -1
package/dist/cjs/version.js
CHANGED
package/dist/cjs/workflow/ask.js
CHANGED
|
@@ -204,7 +204,7 @@ class Ask extends _base.default {
|
|
|
204
204
|
if (this._autoQuery && this._autoQuery.updateUrl !== false) {
|
|
205
205
|
const url = new URL(window.location);
|
|
206
206
|
const currentQuestion = url.searchParams.get('q');
|
|
207
|
-
if (question !== currentQuestion) {
|
|
207
|
+
if (question !== currentQuestion && (currentQuestion || this._autoQuery.updateUrl === true)) {
|
|
208
208
|
url.searchParams.set('q', question);
|
|
209
209
|
window.history.replaceState({}, '', url);
|
|
210
210
|
}
|
package/package.json
CHANGED
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.9.3
|
|
1
|
+
export default '1.9.3';
|
package/src/workflow/ask.js
CHANGED
|
@@ -164,7 +164,7 @@ export default class Ask extends Workflow {
|
|
|
164
164
|
if (this._autoQuery && this._autoQuery.updateUrl !== false) {
|
|
165
165
|
const url = new URL(window.location);
|
|
166
166
|
const currentQuestion = url.searchParams.get('q');
|
|
167
|
-
if (question !== currentQuestion) {
|
|
167
|
+
if (question !== currentQuestion && (currentQuestion || this._autoQuery.updateUrl === true)) {
|
|
168
168
|
url.searchParams.set('q', question);
|
|
169
169
|
window.history.replaceState({}, '', url);
|
|
170
170
|
}
|