From cf1d643376d4f18cd5cfa9075a21b11fb5713daf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Oct 2020 16:05:18 +0300 Subject: some more gulp-related stuff --- js/reader.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'js/reader.js') diff --git a/js/reader.js b/js/reader.js index d2400a5..3947ec6 100644 --- a/js/reader.js +++ b/js/reader.js @@ -199,8 +199,7 @@ const Reader = { }); const base_url = window.location.href.match(/^.*\//)[0]; - const res_names = [ "lib/bootstrap/v3/js/jquery.js", "lib/jquery.mobile-events.min.js", - "js/reader_iframe.js", "js/dict.js" ]; + const res_names = [ "dist/app-libs.min.js", "js/reader_iframe.js" ]; const doc = contents.document; for (let i = 0; i < res_names.length; i++) { @@ -995,10 +994,8 @@ const Reader = { init: function() { // we need to preload resources for reader iframe because it can't utilize our // service worker because while offline it is created outside our base server context - const res_names = [ "lib/bootstrap/v3/js/jquery.js", "lib/jquery.mobile-events.min.js", - "css/transitions.css", "js/reader_iframe.js", "css/reader.css", "js/dict.js", - "themes/default.css", "themes/light.css", "themes/mocca.css", "themes/night.css", - "themes/plan9.css", "themes/gray.css", "themes/sepia.css" ]; + const res_names = [ "dist/app-libs.min.js", + "js/reader_iframe.js", "css/reader.css" ]; for (let i = 0; i < res_names.length; i++) { fetch(res_names[i], {credentials: 'same-origin'}).then(function(resp) { -- cgit v1.2.3