Skip to content

Commit

Permalink
v7.39.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cliqz-ci committed Sep 30, 2019
1 parent 16189bf commit 837d050
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v7.39.4
v7.39.5
18 changes: 5 additions & 13 deletions modules/core/sources/app/module.es
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,15 @@ export default class Module extends EventEmitter {
});
}

disable({ quick } = { quick: false }) {
disable() {
console.log('Module', this.name, 'start unloading');
const background = this.background;

// TODO: remove quick disable because it's not needed anymore
// TODO: remove quick disable usages
if (quick) {
// background does not need to have beforeBrowserShutdown defined
const quickShutdown = background.beforeBrowserShutdown
|| function beforeBrowserShutdown() {};
quickShutdown.call(background);
} else {
if (background) {
background.unload();
this._state = AppStates.DISABLED;
this.loadingTime = null;
this._bgReadyDefer = new Defer();
}
this._state = AppStates.DISABLED;
this.loadingTime = null;
this._bgReadyDefer = new Defer();
console.log('Module', this.name, 'unloading finished');
this.emit(lifecycleEvents.disabled);
}
Expand Down
7 changes: 3 additions & 4 deletions modules/human-web/sources/html-helpers.es
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import getWindowApi from '../core/window-api';
const core = inject.module('core');

function getHTML(originalURL) {
return core.action('getHTML', originalURL).then((docs) => {
const doc = docs[0];
if (doc) {
return doc;
return core.action('getHTML', originalURL).then((html) => {
if (html) {
return html;
}
throw new Error(`Failed to get content for tab with url=${originalURL}`);
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-core",
"version": "7.39.4",
"version": "7.39.5",
"description": "Cliqz features, shared across products including Cliqz browsers for Windows, Mac, Android and iOS",
"main": "build/index.js",
"scripts": {
Expand Down

0 comments on commit 837d050

Please sign in to comment.