You don't need to install anything to use Glowing Bear, it works with any modern browser. Start using it right now at the top of the page! However, there are a few ways to improve integration with your operating system.
-
Electron
-
Glowing Bear supports the electron shell. You'll have to build it yourself, though. Run the following commands, choosing your platform from the list in the last command:
git clone https://github.com/glowing-bear/glowing-bear
-cd glowing-bear
-npm install
-npm install electron-packager
-npm run build-electron-{windows, darwin, linux}
Chrome
To install Glowing Bear as an app in Chrome for Android, select Menu - Add to home screen. In the desktop version of Chrome, click Menu - More tools - Create application shortcuts.
Firefox Browser
diff --git a/src/js/glowingbear.js b/src/js/glowingbear.js
index 65cd0bf..54c69b3 100644
--- a/src/js/glowingbear.js
+++ b/src/js/glowingbear.js
@@ -113,8 +113,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Show a TLS warning if GB was loaded over an unencrypted connection,
// except for local instances (local files, testing)
$scope.show_tls_warning = (["https:", "file:"].indexOf(window.location.protocol) === -1) &&
- (["localhost", "127.0.0.1", "::1"].indexOf(window.location.hostname) === -1) &&
- !window.is_electron;
+ (["localhost", "127.0.0.1", "::1"].indexOf(window.location.hostname) === -1)
$rootScope.isWindowFocused = function() {
if (typeof $scope.documentHidden === "undefined") {
diff --git a/src/js/notifications.js b/src/js/notifications.js
index 901808e..4370ba5 100644
--- a/src/js/notifications.js
+++ b/src/js/notifications.js
@@ -24,8 +24,8 @@ weechat.factory('notifications', ['$rootScope', '$log', 'models', 'settings', 'u
}
}
- // Check for serviceWorker support, and also disable serviceWorker if we're running in electron process, since that's just problematic and not necessary, since gb then already is in a separate process
- if ('serviceWorker' in navigator && window.is_electron !== 1 && !utils.isTauri()) {
+ // Check for serviceWorker support, and also disable serviceWorker if we're running in tauri process, since that's just problematic and not necessary, since gb then already is in a separate process
+ if ('serviceWorker' in navigator && !utils.isTauri()) {
$log.info('Service Worker is supported');
navigator.serviceWorker.register('serviceworker.js').then(function(reg) {
$log.info('Service Worker install:', reg);
@@ -167,15 +167,9 @@ weechat.factory('notifications', ['$rootScope', '$log', 'models', 'settings', 'u
}
};
- // Update app badge (electron only)
+ // Update app badge (tauri? only)
var updateBadge = function(value) {
-
- // Send new value to preloaded global function
- // if it exists
- if (typeof setElectronBadge === 'function') {
- setElectronBadge(value);
- }
-
+ // leaving this a placeholder for future tauri badge operations
};
/* Function gets called from bufferLineAdded code if user should be notified */
diff --git a/webpack.config.js b/webpack.config.js
index c9fb4cf..f871e54 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -37,7 +37,6 @@ module.exports = {
"**/*.png",
"directives/*.html",
"serviceworker.js",
- "electron-*.js",
"../package.json",
"manifest.json",
"manifest.webapp",