You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if let path =NSBundle.mainBundle().pathForResource("FindInPage", ofType:"js"), source =try?NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding)asString{
Copy file name to clipboardexpand all lines: Client/Frontend/Browser/LoginsHelper.swift
+14-14
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ import Deferred
11
11
12
12
privateletlog=Logger.browserLogger
13
13
14
-
class LoginsHelper:BrowserHelper{
15
-
private weak varbrowser:Browser?
14
+
class LoginsHelper:TabHelper{
15
+
private weak vartab:Tab?
16
16
privateletprofile:Profile
17
17
privatevarsnackBar:SnackBar?
18
18
@@ -25,13 +25,13 @@ class LoginsHelper: BrowserHelper {
25
25
return"LoginsHelper"
26
26
}
27
27
28
-
required init(browser:Browser, profile:Profile){
29
-
self.browser=browser
28
+
required init(tab:Tab, profile:Profile){
29
+
self.tab=tab
30
30
self.profile = profile
31
31
32
32
if let path =NSBundle.mainBundle().pathForResource("LoginsHelper", ofType:"js"), source =try?NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding)asString{
Copy file name to clipboardexpand all lines: Client/Frontend/Browser/PrintHelper.swift
+6-6
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ import Foundation
6
6
import Shared
7
7
import WebKit
8
8
9
-
class PrintHelper:BrowserHelper{
10
-
private weak varbrowser:Browser?
9
+
class PrintHelper:TabHelper{
10
+
private weak vartab:Tab?
11
11
12
12
classfunc name()->String{
13
13
return"PrintHelper"
14
14
}
15
15
16
-
required init(browser:Browser){
17
-
self.browser=browser
16
+
required init(tab:Tab){
17
+
self.tab=tab
18
18
if let path =NSBundle.mainBundle().pathForResource("PrintHelper", ofType:"js"), source =try?NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding)asString{
0 commit comments