diff --git a/replaywebpage.libraries.yml b/replaywebpage.libraries.yml index f01a8bb..30a57bc 100644 --- a/replaywebpage.libraries.yml +++ b/replaywebpage.libraries.yml @@ -1,20 +1,11 @@ -# Custom module library for general purposes. -replaywebpage: - js: - js/replaywebpage.js: {} - css: - component: - css/replaywebpage.css: {} - dependencies: - - core/drupalSettings - +# ReplayWebPage Js Library +# 1.8.0 ui.js and 1.8.13 sw.js (sw.js is in relative path replay/sw.js) replayweb: - version: 1.5 + version: 1.8 license: name: AGPLv3 url: https://github.com/webrecorder/replayweb.page/blob/master/LICENSE gpl-compatible: true js: - https://cdn.jsdelivr.net/npm/replaywebpage@1.5.0/ui.js: { preprocess: false, external: true, minified: true } - - + https://cdn.jsdelivr.net/npm/replaywebpage@1.8.13/ui.js: { preprocess: false, external: true, minified: true } + diff --git a/src/Controller/JsWorkerController.php b/src/Controller/JsWorkerController.php index 6a6ff67..93b48bd 100644 --- a/src/Controller/JsWorkerController.php +++ b/src/Controller/JsWorkerController.php @@ -20,7 +20,7 @@ class JsWorkerController extends ControllerBase { */ public function servereplay() { $response = new Response( - 'importScripts("https://cdn.jsdelivr.net/npm/replaywebpage@1.5.0/sw.js");' + 'importScripts("https://cdn.jsdelivr.net/npm/replaywebpage@1.8.13/sw.js");' ); // Alternative https://unpkg.com/replaywebpage@1.5.0/sw.js $response->headers->set('Content-Type', 'text/javascript');