coursecode 0.1.49 → 0.1.50

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.
@@ -203,13 +203,10 @@ function resolveSlideId(contentWindow, slideIdOrIndex) {
203
203
  // =============================================================================
204
204
 
205
205
  function doReset() {
206
- // Viewer previews share an origin between the stub player and course iframe.
207
- // Match the local /__reset route by clearing course/framework progress too.
208
- let skipGating = null;
209
- try { skipGating = localStorage.getItem('coursecode-skipGating'); } catch { /* ignore */ }
210
- try { localStorage.clear(); } catch { /* ignore */ }
211
- if (skipGating !== null) {
212
- try { localStorage.setItem('coursecode-skipGating', skipGating); } catch { /* ignore */ }
206
+ // Static/cloud export: clear LMS localStorage and reload (no server route)
207
+ const storageKey = config.storageKey;
208
+ if (storageKey) {
209
+ try { localStorage.removeItem(storageKey); } catch { /* ignore */ }
213
210
  }
214
211
  window.location.reload();
215
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coursecode",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "Multi-format course authoring framework with CLI tools (SCORM 2004, SCORM 1.2, cmi5, LTI 1.3)",
5
5
  "type": "module",
6
6
  "bin": {