"Fix dirty hack" (runtime.reload) in chromium.js
Runtime reload is overkill and causes a jarring ux. Instead, send and receive messages across the runtime. Also, if we need to jump between the main ui and options pages, simply navigate within the current tab rather than spawning a new one.
This commit is contained in:
parent
4119c13ba2
commit
13446e9c17
3 changed files with 30 additions and 17 deletions
|
@ -63,7 +63,7 @@ Whisper.Layout = new (Backbone.View.extend({
|
|||
}))({el: document});
|
||||
|
||||
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
||||
extension.navigator.tabs.create("options.html");
|
||||
window.location = '/options.html';
|
||||
} else {
|
||||
textsecure.storage.putUnencrypted("unreadCount", 0);
|
||||
extension.navigator.setBadgeText("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue