We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5d250 commit 4b86e3dCopy full SHA for 4b86e3d
1 file changed
contentScript.js
@@ -1,7 +1,17 @@
1
import { unpack } from 'msgpackr';
2
import { Buffer } from 'buffer';
3
4
+function isQueueDetailsPage() {
5
+ const fragment = window.location.hash.substring(1);
6
+ const [path, queryString] = fragment.split('?');
7
+ return path.startsWith('/queues/') && path.split('/').length >= 2;
8
+}
9
+
10
function handleRabbitMQMessageDecoding(mutations) {
11
+ if (!isQueueDetailsPage()) {
12
+ return;
13
+ }
14
15
mutations.forEach((mutation) => {
16
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
17
if (mutation.target.nodeName != 'DIV') {
0 commit comments