Ejemplo n.º 1
0
        private void AddCurrentChromeURLtoPACCallback()
        {
            var curl = Util.Utils.GetChromeUrl();

            if (!string.IsNullOrEmpty(curl))
            {
                var rule = $"|{curl}";
                Logging.Info("DetectURL:" + curl);
                _menuController.ShowBalloonTip(_controller.InsertUserRule(rule) ? I18N.GetString("user rule has been added") : I18N.GetString("user rule has been removed"), rule);
                return;
            }
            Logging.Info("Can not find any url");
        }