   }
   
   func closeWebView() {
+    self.view.backgroundColor = UIColor.black
     if webView != nil {
       webView!.navigationDelegate = nil
       webView!.removeObserver(self, forKeyPath: #keyPath(WKWebView.estimatedProgress))

                  "body {background-color: white; margin: 0;}\n" +
                  "</style>\n" +
                  "</head>\n" +
                  "<body><div id='wptorange' style='position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #DE640D'></div></body>\n" +
                  "</html>"
  let showOrange =  "(function() {" +
                    "var wptDiv = document.createElement('div');" +
                    "wptDiv.id = 'wptorange';" +
                    "wptDiv.style.position = 'absolute';" +
                    "wptDiv.style.top = '0';" +
                    "wptDiv.style.left = '0';" +
                    "wptDiv.style.right = '0';" +
                    "wptDiv.style.bottom = '0';" +
                    "wptDiv.style.zIndex = '2147483647';" +
                    "wptDiv.style.backgroundColor = '#DE640D';" +
                    "document.body.appendChild(wptDiv);" +
                    "})();"
  let hideOrange =  "(function() {" +
                    "var wptDiv = document.getElementById('wptorange');" +
                    "wptDiv.parentNode.removeChild(wptDiv);" +
                    "})();"
  
  func log(_ message: String) {
    //NSLog("iWptBrowser (\(self.timestamp())): \(message.replacingOccurrences(of: "\t", with: " ").replacingOccurrences(of: "\n", with: ""))")
  }
  
  override func viewDidLoad() {

  
  func addOrange(id:String) {
    if webView != nil {
      webView!.isHidden = true
      hasOrange = true
      self.sendMessage(id:id, message:"OK")
    } else {
      sendMessage(id:id, message:"ERROR", data:"Browser not started")
    }
