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
|
-
//
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
}
|