Skip to content

Commit

Permalink
Fix slash command popup
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed Feb 21, 2024
1 parent 5e46f0f commit 968a203
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# CHANGELOG.md
## 7.3.1.0 (2024-02-19)

## 7.3.1.1 (2024-02-21)
Fixes / changes:
- Fix slash command not showing when not in Next Experience

## 7.3.1.0 (2024-02-21)
Features:
- Node switching is improved and now supports ADCV2 loadbalancing instances.
- Pa

Fixes / changes:
- Added md5.js script to support node switching
- Added an extra way to suppress slash commands popup, in case event capturing does not work
Expand Down
2 changes: 1 addition & 1 deletion inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -3073,7 +3073,7 @@ function snuSetShortCuts() {
if (path.length > 8 && path[2]?.className.includes('CodeMirror')) return //not in codemirror
event.preventDefault();
//in some browsers the event KEYBOARD_SHORTCUTS_BEHAVIOR#MODAL_OPENED event can't be captured. this is a temporary fallback
var showingPopup = window.top.querySelectorShadowDom.querySelectorDeep('.keyboard-shortcuts-modal'); //washington shortcuts popup
var showingPopup = window.top?.querySelectorShadowDom?.querySelectorDeep('.keyboard-shortcuts-modal'); //washington shortcuts popup
if (showingPopup) event.preventDefault(); //don show when already visible
setTimeout(() => {
var showingPopup = window.top.querySelectorShadowDom.querySelectorDeep('.keyboard-shortcuts-modal'); //washington shortcuts popup
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "7.3.1.0",
"version": "7.3.1.1",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lastpublishedversion=`cat publish/lastpublishedversion.txt`
if [ "$lastpublishedversion" = "$currentversion" ]; then
echo "Can not publish, version not updated in manifest.json: $currentversion"
else
#node publish/publish.mjs
node publish/publish.mjs
echo "Publishing: $currentversion"
echo "$currentversion" > publish/lastpublishedversion.txt #write version to file
fi
Expand Down

0 comments on commit 968a203

Please sign in to comment.