@breakside/jskit 2024.8.1 → 2024.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UIHTMLApplication.js +33 -0
- package/Root/Frameworks/UIKit/UINavigationController.js +1 -1
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/Root/Templates/html/${PROJECT_NAME}/www/HTMLAppBootstrapper.js +8 -7
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
4
|
-
"JSBundleVersion": "2024.
|
|
4
|
+
"JSBundleVersion": "2024.11.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "DOM+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
6
|
-
"JSBundleVersion": "2024.
|
|
6
|
+
"JSBundleVersion": "2024.11.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
11
11
|
"node": "DOM+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
4
|
-
"JSBundleVersion": "2024.
|
|
4
|
+
"JSBundleVersion": "2024.11.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
8
8
|
"html": "FontKit+HTML.js"
|
|
9
9
|
},
|
|
10
10
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
6
|
-
"JSBundleVersion": "2024.
|
|
6
|
+
"JSBundleVersion": "2024.11.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
10
10
|
"html": "FontKit+HTML.js"
|
|
11
11
|
},
|
|
12
12
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [],
|
|
16
16
|
"ResourceLookup": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
4
|
-
"JSBundleVersion": "2024.
|
|
4
|
+
"JSBundleVersion": "2024.11.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "Foundation+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
6
|
-
"JSBundleVersion": "2024.
|
|
6
|
+
"JSBundleVersion": "2024.11.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
11
11
|
"node": "Foundation+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [
|
|
17
17
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
4
|
-
"JSBundleVersion": "2024.
|
|
4
|
+
"JSBundleVersion": "2024.11.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "SecurityKit+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
6
|
-
"JSBundleVersion": "2024.
|
|
6
|
+
"JSBundleVersion": "2024.11.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
11
11
|
"node": "SecurityKit+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
package/Info.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "node",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
4
|
-
"JSBundleVersion": "2024.
|
|
4
|
+
"JSBundleVersion": "2024.11.0",
|
|
5
5
|
"JSExecutableName": "jskit",
|
|
6
6
|
"NPMOrganization": "breakside",
|
|
7
7
|
"JSResources": [
|
|
8
8
|
"Tests/HTMLTestRunner.js",
|
|
9
9
|
"Tests/NodeTestRunner.js"
|
|
10
10
|
],
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2024.
|
|
6
|
+
"JSBundleVersion": "2024.11.0",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "7c652a2fcf697c3518061c50dda0fefec043782b"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
@@ -31,6 +31,8 @@ JSClass("UIHTMLApplication", UIApplication, {
|
|
|
31
31
|
UIHTMLApplication.$super.initWithBundle.call(this, bundle, windowServer);
|
|
32
32
|
this.domWindow = this.windowServer.domWindow;
|
|
33
33
|
this.rememberStateInPath = this.bundle.info.UIHTMLUseURLPathForState === true;
|
|
34
|
+
this.previousUpdateCheckDate = JSDate.distantPast;
|
|
35
|
+
this.minimumUpdateCheckTimeInterval = JSTimeInterval.hours(1);
|
|
34
36
|
},
|
|
35
37
|
|
|
36
38
|
setup: function(completion, target){
|
|
@@ -260,6 +262,7 @@ JSClass("UIHTMLApplication", UIApplication, {
|
|
|
260
262
|
if (this.delegate && this.delegate.applicationDidEnterForeground){
|
|
261
263
|
this.delegate.applicationDidEnterForeground(this);
|
|
262
264
|
}
|
|
265
|
+
this.checkForUpdateIfNeeded();
|
|
263
266
|
}
|
|
264
267
|
},
|
|
265
268
|
|
|
@@ -313,6 +316,36 @@ JSClass("UIHTMLApplication", UIApplication, {
|
|
|
313
316
|
label.style.textAlign = 'center';
|
|
314
317
|
label.style.whiteSpace = 'pre-wrap';
|
|
315
318
|
}
|
|
319
|
+
},
|
|
320
|
+
|
|
321
|
+
previousUpdateCheckDate: null,
|
|
322
|
+
minimumUpdateCheckTimeInterval: null,
|
|
323
|
+
|
|
324
|
+
checkForUpdateIfNeeded: function(){
|
|
325
|
+
if (JSDate.now.timeIntervalSinceDate(this.previousUpdateCheckDate) > this.minimumUpdateCheckTimeInterval){
|
|
326
|
+
this.checkForUpdate();
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
|
|
330
|
+
checkForUpdate: function(){
|
|
331
|
+
logger.info("checking for update");
|
|
332
|
+
this.previousUpdateCheckDate = JSDate.now;
|
|
333
|
+
var bootstrapper = this.bootstrapper;
|
|
334
|
+
if (bootstrapper.serviceWorkerRegistration){
|
|
335
|
+
return bootstrapper.serviceWorkerRegistration.update().catch(function(e){
|
|
336
|
+
logger.warn("update check failed: %{error}", e);
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
updateAvailable: false,
|
|
342
|
+
|
|
343
|
+
notifyUpdateAvailable: function(bootstrapper){
|
|
344
|
+
this.updateAvailable = true;
|
|
345
|
+
if (this.delegate && this.delegate.applicationUpdateAvailable){
|
|
346
|
+
this.delegate.applicationUpdateAvailable(this);
|
|
347
|
+
}
|
|
348
|
+
JSNotificationCenter.shared.post("ApplicationUpdateAvailable", this);
|
|
316
349
|
}
|
|
317
350
|
|
|
318
351
|
});
|
|
@@ -372,7 +372,7 @@ JSClass("UINavigationController", UIViewController, {
|
|
|
372
372
|
navigationBar.hidden = item.hidesNavigationBar;
|
|
373
373
|
if (isHidingNavigationBar){
|
|
374
374
|
navigationBar.transform = JSAffineTransform.Identity;
|
|
375
|
-
navigationBar.
|
|
375
|
+
navigationBar.popToItem(item, false);
|
|
376
376
|
}
|
|
377
377
|
fromView.removeFromSuperview();
|
|
378
378
|
fromView.shadowColor = null;
|
|
@@ -314,12 +314,15 @@ HTMLAppBootstrapper.prototype = {
|
|
|
314
314
|
|
|
315
315
|
// MARK: - Service Worker
|
|
316
316
|
|
|
317
|
+
serviceWorkerRegistration: null,
|
|
318
|
+
|
|
317
319
|
_installUsingServiceWorker: function(container){
|
|
318
320
|
var bootstrapper = this;
|
|
319
321
|
bootstrapper.log_debug("serviceWorker", "Getting registration");
|
|
320
322
|
container.addEventListener('message', bootstrapper);
|
|
321
323
|
container.getRegistration().then(function(registration){
|
|
322
324
|
if (registration){
|
|
325
|
+
bootstrapper.serviceWorkerRegistration = registration;
|
|
323
326
|
bootstrapper.log_debug("serviceWorker", "Found registration");
|
|
324
327
|
bootstrapper.log_debug("serviceWorker", "Checking for update");
|
|
325
328
|
bootstrapper.setStatus(HTMLAppBootstrapper.STATUS.checkingForUpdate);
|
|
@@ -331,6 +334,7 @@ HTMLAppBootstrapper.prototype = {
|
|
|
331
334
|
bootstrapper.log_debug("serviceWorker", "Registering");
|
|
332
335
|
return container.register(bootstrapper.serviceWorkerSrc);
|
|
333
336
|
}).then(function(registration){
|
|
337
|
+
bootstrapper.serviceWorkerRegistration = registration;
|
|
334
338
|
if (registration.installing){
|
|
335
339
|
if (bootstrapper.status === HTMLAppBootstrapper.STATUS.checkingForUpdate){
|
|
336
340
|
bootstrapper.log_debug("serviceWorker", "Installing Update");
|
|
@@ -383,10 +387,8 @@ HTMLAppBootstrapper.prototype = {
|
|
|
383
387
|
if (worker.state == "installed"){
|
|
384
388
|
this.log_debug("serviceWorker", "Update Installed");
|
|
385
389
|
if (this.application !== null){
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
this.application.delegate.applicationUpdateAvailable(this.application);
|
|
389
|
-
}
|
|
390
|
+
this.log_debug("serviceWorker", "Notifying application");
|
|
391
|
+
this.application.notifyUpdateAvailable();
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
394
|
}
|
|
@@ -398,7 +400,7 @@ HTMLAppBootstrapper.prototype = {
|
|
|
398
400
|
var d = Math.round(e.data.total / 10);
|
|
399
401
|
if (worker === this.serviceWorker){
|
|
400
402
|
if (e.data.type == 'progress'){
|
|
401
|
-
if (e.data.loaded % d === 0){
|
|
403
|
+
if ((e.data.loaded % d === 0) || (e.data.loaded === e.data.total)){
|
|
402
404
|
this.log_debug("serviceWorker", "Progress " + e.data.loaded + '/' + e.data.total);
|
|
403
405
|
}
|
|
404
406
|
this.onprogress(e.data.loaded, e.data.total);
|
|
@@ -414,10 +416,9 @@ HTMLAppBootstrapper.prototype = {
|
|
|
414
416
|
}
|
|
415
417
|
}else{
|
|
416
418
|
if (e.data.type == 'progress'){
|
|
417
|
-
if (e.data.loaded % d === 0){
|
|
419
|
+
if ((e.data.loaded % d === 0) || (e.data.loaded === e.data.total)){
|
|
418
420
|
this.log_debug("serviceWorker", "Progress from new worker " + e.data.loaded + '/' + e.data.total);
|
|
419
421
|
}
|
|
420
|
-
this.onprogress(e.data.loaded, e.data.total);
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
424
|
},
|