mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-14 14:58:35 -04:00
Update transformZimit.js
Former-commit-id: 4125df649d2afc6f713aad1c637f7f6eb18c49ef [formerly 228ae4bb3186c3f98f73cf34acbf38929c365b36 [formerly 7ec5fd8ea5f8b711558494881d99a48ca07a98a9]] Former-commit-id: 350b4739799425c27d19e73ef10f471d4f6d4c04 [formerly a2538d8e6314c249ce0ce73447b81937ead1e08a] Former-commit-id: d54242fefad103a12b4e5176fe87fbfd1991a72b
This commit is contained in:
parent
a7f453c1b7
commit
88ea328cc9
@ -135,6 +135,8 @@ define([], function () {
|
||||
|
||||
|
||||
// Remove any <base href...> statements
|
||||
// DEV: You should probably deal with this more intelligently, changing absolute links rather than just removing
|
||||
// but so far, removing it seems to do the job
|
||||
data = data.replace(/<base\b[^>]+href\b[^>]+>\s*/i, '');
|
||||
|
||||
// Remove any residual analytics
|
||||
|
Loading…
x
Reference in New Issue
Block a user