Include the representation of a value in its URL
@@ -335,15 +335,7 @@ fileprivate extension ConsoleViewController {
}
#endif
- #if MAIN
- let font = EditorViewController.font.withSize(CGFloat(ThemeFontSize))
- let color = ConsoleViewController.choosenTheme.sourceCodeTheme.color(for: .identifier)
- #else
- let font = UIFont(name: "Menlo", size: 12) ?? UIFont.systemFont(ofSize: 12)
- let color = #colorLiteral(red: 0.1960784346, green: 0.3411764801, blue: 0.1019607857, alpha: 1)
- #endif
-
- let url = "pyto://inspector/?\(value.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "")"
+ let url = "pyto://inspector/\(text.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "")/?\(value.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "")"
NSLog("%@", url)
NSLog("%@", value)
