Skip to content

Commit

Permalink
update replayweb libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Natkeeran committed Nov 3, 2023
1 parent 2f9d27d commit d33cb03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3,512 deletions.
118 changes: 0 additions & 118 deletions js/replay/sw.js

This file was deleted.

3,390 changes: 0 additions & 3,390 deletions js/ui.js

This file was deleted.

10 changes: 7 additions & 3 deletions replaywebpage.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# ReplayWebPage Js Library
# 1.8.13 ui.js and 1.8.13 sw.js (sw.js is in relative path replay/sw.js)
# No need to declare sw.js explictly here
# 1.8.0 ui.js and 1.8.13 sw.js (sw.js is in relative path replay/sw.js)
replayweb:
version: 1.8
license:
name: AGPLv3
url: https://github.com/webrecorder/replayweb.page/blob/master/LICENSE
gpl-compatible: true
js:
js/ui.js: {}
https://cdn.jsdelivr.net/npm/[email protected]/ui.js: { preprocess: false, external: true, minified: true }
2 changes: 1 addition & 1 deletion src/Controller/JsWorkerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]/sw.js
$response->headers->set('Content-Type', 'text/javascript');
Expand Down

0 comments on commit d33cb03

Please sign in to comment.