Skip to content

Commit 7a1e849

Browse files
ctprentzsch
authored andcommitted
Fix deprecated use of +stringWithContentsOfFile:
Signed-off-by: Jonathan 'Wolf' Rentzsch <[email protected]>
1 parent 69c0083 commit 7a1e849

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Plugin/CTFsIFRSupport.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ - (void) _disableSIFR
9090
NSString *addOnPath = [clickBundle pathForResource: jsFileName ofType: @"js"];
9191

9292
if( addOnPath ) {
93-
NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath];
93+
NSStringEncoding enc ;
94+
NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath usedEncoding: &enc error: nil];
9495

9596
if (sifrAddOnJS && ![sifrAddOnJS isEqualToString: @""])
9697
[[sifrWebView windowScriptObject] evaluateWebScript: sifrAddOnJS];

0 commit comments

Comments
 (0)