Skip to content

Commit 201be1c

Browse files
committed
Release 1.0.3
1 parent c53fb61 commit 201be1c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Click the extension icon to see:
109109

110110
### How It Works
111111

112-
1. **Plugin Injects Data**: Shopware plugin adds `<script id="sidworks-shopware-devtools-data">` with template metadata
112+
1. **Plugin Injects Data**: Shopware plugin adds `<script id="sidworks-devtools-data">` with template metadata
113113
2. **Content Script Detects**: `content.js` detects the data and notifies the extension
114114
3. **DevTools Panel Created**: `devtools-init.js` creates the "Shopware" sidebar panel
115115
4. **Element Selection**: User selects element in Chrome Elements panel
@@ -143,7 +143,7 @@ Settings are stored in Chrome's `chrome.storage.sync`:
143143
### No "Shopware" Sidebar Appears
144144
- DevTools data not found on page
145145
- Ensure plugin is active (check popup)
146-
- Verify `<script id="sidworks-shopware-devtools-data">` exists in page source
146+
- Verify `<script id="sidworks-devtools-data">` exists in page source
147147

148148
### IDE Link Opens Wrong Path
149149
- Check that **Project Path** in plugin configuration options matches your local filesystem

js/content.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function addDocumentInformation() {
3939
let elementCounter = 0;
4040

4141
try {
42-
const scriptTag = document.getElementById('sidworks-shopware-devtools-data');
42+
const scriptTag = document.getElementById('sidworks-devtools-data');
4343
if (scriptTag) {
4444
const existingData = JSON.parse(scriptTag.textContent);
4545
if (existingData.elementData) {
@@ -135,7 +135,7 @@ function addDocumentInformation() {
135135
*/
136136
function storeElementData(elementDataStore) {
137137
try {
138-
const scriptTag = document.getElementById('sidworks-shopware-devtools-data');
138+
const scriptTag = document.getElementById('sidworks-devtools-data');
139139
if (scriptTag) {
140140
const existingData = JSON.parse(scriptTag.textContent);
141141
existingData.elementData = elementDataStore;
@@ -181,7 +181,7 @@ function updateDevToolsInformation() {
181181

182182
addDocumentInformation();
183183

184-
const scriptTag = document.getElementById('sidworks-shopware-devtools-data');
184+
const scriptTag = document.getElementById('sidworks-devtools-data');
185185
const hasDevTools = scriptTag && JSON.parse(scriptTag.textContent).elementData;
186186

187187
if (port) {
@@ -254,7 +254,7 @@ observer.observe(document.documentElement, {
254254
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
255255
if (request.type === 'checkStatus') {
256256
try {
257-
const scriptTag = document.getElementById('sidworks-shopware-devtools-data');
257+
const scriptTag = document.getElementById('sidworks-devtools-data');
258258
if (scriptTag) {
259259
const data = JSON.parse(scriptTag.textContent);
260260
const elementCount = data.elementData ? Object.keys(data.elementData).length : 0;

js/devtools-init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if (typeof chrome !== 'undefined' && chrome.devtools) {
22
// Check if Shopware DevTools data exists on the page
33
chrome.devtools.inspectedWindow.eval(
4-
'document.getElementById("sidworks-shopware-devtools-data") !== null',
4+
'document.getElementById("sidworks-devtools-data") !== null',
55
function(hasDevToolsData, isException) {
66
if (isException || !hasDevToolsData) {
77
return;

js/inspector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function onItemInspected() {
77
// Get element data store from script tag
88
let elementDataStore = null;
99
try {
10-
const scriptTag = document.getElementById('sidworks-shopware-devtools-data');
10+
const scriptTag = document.getElementById('sidworks-devtools-data');
1111
if (scriptTag) {
1212
if (!window.__swdtCache || Date.now() - window.__swdtCacheTime > 1000) {
1313
const data = JSON.parse(scriptTag.textContent);
@@ -93,7 +93,7 @@ function onItemInspected() {
9393
// Get project path from page
9494
chrome.devtools.inspectedWindow.eval(
9595
`(function() {
96-
const dataScript = document.getElementById('sidworks-shopware-devtools-data');
96+
const dataScript = document.getElementById('sidworks-devtools-data');
9797
if (dataScript) {
9898
try {
9999
const data = JSON.parse(dataScript.textContent);

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Sidworks DevTools for Shopware 6",
44
"description": "Developer tools for Shopware 6 - Inspect templates and debug your storefront",
5-
"version": "1.0.2",
5+
"version": "1.0.3",
66
"icons": {
77
"128": "images/icon128.png"
88
},

0 commit comments

Comments
 (0)