From 6838bfa24f179715387094b3134233d25569e1b7 Mon Sep 17 00:00:00 2001 From: arnoudkooi Date: Mon, 11 Nov 2024 22:04:12 +0100 Subject: [PATCH] Minor update v8.2.5.2 --- CHANGELOG.md | 5 +++-- inject.js | 2 +- manifest.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0896018..ef1b1ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,14 @@ # CHANGELOG.md -## 8.2.5.1 (2024-11-11) +## 8.2.5.1/2 (2024-11-11) Fixes / changes: - Updates to the package script publish.sh, goal is to prevent renaming of the tsWorker.js file. + - Bugfix to handle undefined snufilter variable, causing slash commands not to work (Slack) ## 8.2.5.0 (2024-11-09) Features: - Add /sns command to open the new ServiceNow Studio (LinkedIn post #philgoesdeep) - - Add /ois command to open current record in existing ServiceNow Studio as tab, as a tab (Beta) + - Add /ois command to open current record in existing ServiceNow Studio tab as a tab (Beta) - Inside ServiceNow Studio slash command inline results, will now open the record as a tab inside ServiceNow studio when it is metadata. By holding a modifier key a new tab will open. - Dynamic slash commands that search metadata tables, now show sys_name as first column in the inline results. diff --git a/inject.js b/inject.js index c146658..eb66c16 100644 --- a/inject.js +++ b/inject.js @@ -3616,7 +3616,7 @@ function snuSetShortCuts() { } } } - else if (snufilter?.value?.length === 1 && (event.metaKey || event.ctrlKey)) { + else if (window.top?.snufilter?.value?.length === 1 && (event.metaKey || event.ctrlKey)) { snuSlashCommandHide(); return; } diff --git a/manifest.json b/manifest.json index b404fb1..9f2980f 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "short_name": "SN Utils", "description": "Productivity tools for ServiceNow. (Personal work, not affiliated to ServiceNow)", "author": "Arnoud Kooi / arnoudkooi.com", - "version": "8.2.5.1", + "version": "8.2.5.2", "manifest_version": 3, "permissions": [ "activeTab",