mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
OpenIDE fix open urls in license agreement for astra linux
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
|
||||
// Modified by Nikita Iarychenko at 2026 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package com.intellij.ide.gdpr.ui
|
||||
|
||||
import com.intellij.ide.BrowserUtil
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
import org.jsoup.nodes.TextNode
|
||||
@@ -85,7 +89,7 @@ class HtmlRtfPane {
|
||||
val range = linkMap.keys.firstOrNull { it.contains(resultPane.viewToModel(location)) } ?: return
|
||||
val link = linkMap[range] ?: return
|
||||
if (Desktop.isDesktopSupported()) {
|
||||
Desktop.getDesktop().browse(URI(link))
|
||||
BrowserUtil.browse(link)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user