Skip to content

'undefined' on real device with iOS 16, while working on iOS 18 simulator #109

Description

@JaDenis

Have anyone encountered 'undefined' error?
It works fine in simulator, but on device I get 'undefined'
Please help, I'm trying to debug in the meantime: latest suspicion is JavaScriptCore on iOS 16 is incpompatible with highlightr.js code

if let highlightr = Highlightr() {
    highlightr.setTheme(to: "dark")
    let code = "import UIKit"
    // You can omit the second parameter to use automatic language detection.
    let highlightedCode = highlightr.highlight(code)
    self.textView.attributedText = highlightedCode
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions