-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from digitalutsc/not_found_in_archive_issue
add 1.8.13 replaywebpage libraries locally to fix the service worker …
- Loading branch information
Showing
2 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected]/ui.js: { preprocess: false, external: true, minified: true } | ||
|
||
|
||
https://cdn.jsdelivr.net/npm/[email protected]/ui.js: { preprocess: false, external: true, minified: true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
|