mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
MESSENGER-2762 Initial Merge
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright 2017 Vector Creations Ltd
|
||||
Copyright (c) 2021 BWI GmbH
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -76,4 +77,21 @@
|
||||
[super destroy];
|
||||
}
|
||||
|
||||
- (void)setURL:(NSString *)URL
|
||||
{
|
||||
if (webView && BuildSettings.enableJSInWebView == false) {
|
||||
webView.configuration.preferences.javaScriptEnabled = NO;
|
||||
}
|
||||
|
||||
[super setURL:URL];
|
||||
}
|
||||
|
||||
- (void)setLocalHTMLFile:(NSString *)localHTMLFile
|
||||
{
|
||||
if (webView && BuildSettings.enableJSInWebView == false) {
|
||||
webView.configuration.preferences.javaScriptEnabled = NO;
|
||||
}
|
||||
|
||||
[super setLocalHTMLFile:localHTMLFile];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user