Browse Source

Open setup in a new tab. Fixes #236

pull/242/head
brantje 1 year ago
parent
commit
b42b53518d
No account linked to committer's email address

+ 2
- 1
css/browser_action.css View File

@@ -538,7 +538,8 @@ body {
538 538
   font-family: 'Roboto', sans-serif;
539 539
   overflow-x: hidden; }
540 540
   body.setup {
541
-    width: 100%; }
541
+    width: 100%;
542
+    min-width: 350px; }
542 543
 
543 544
 header {
544 545
   width: 100%;

+ 1
- 1
css/browser_action.css.map
File diff suppressed because it is too large
View File


+ 5
- 0
js/background/service/background.js View File

@@ -17,6 +17,11 @@ var background = (function () {
17 17
 
18 18
     });
19 19
 
20
+    API.runtime.onInstalled.addListener(function () {
21
+        var url = 'chrome-extension://' + API.runtime.id + '/html/browser_action/browser_action.html';
22
+        API.tabs.create({url: url});
23
+    });
24
+
20 25
     var master_password = null;
21 26
 
22 27
     function getMasterPasswordSet() {

+ 1
- 3
js/ui/popup/controllers/setup.js View File

@@ -192,9 +192,7 @@
192 192
                         }).then(function () {
193 193
                             setTimeout(function () {
194 194
                                 $rootScope.setup = false;
195
-                                $rootScope.$broadcast('showHeader');
196
-                                window.location = '#!/';
197
-                                API.runtime.sendMessage(API.runtime.id, {
195
+                                 API.runtime.sendMessage(API.runtime.id, {
198 196
                                     method: "closeSetupTab"
199 197
                                 });
200 198
                                 $scope.saving = false;

+ 1
- 0
style/browser_action.scss View File

@@ -11,6 +11,7 @@ $sidebarWidth: 250px;
11 11
 body {
12 12
   &.setup{
13 13
     width: 100%;
14
+    min-width: 350px;
14 15
   }
15 16
   width: 450px;
16 17
   min-height: 350px;

Loading…
Cancel
Save