   return vc
 }
 
-public func createWebAppViewController(HTMLString:String) -> BXWebAppViewController{
+public func createWebAppViewController(HTMLString:String,baseURL:NSURL?=nil) -> BXWebAppViewController{
   let vc  =  BXWKWebViewViewController()
   vc.webHTMLString = HTMLString
+  vc.baseURL = baseURL
   return vc
 }
 

     return  BXNetworkErrorTipView()
  }()
 
  var webURL:NSURL?
  var webHTMLString:String?
  
  // MARK: WebApp Interface flag
  var shouldReload  = false //

    if let URL = webURL{
      loadURL(URL)
    }else if let html = webHTMLString{
      loadHTMLString(html,baseURL: baseURL)
    }
  }
  
