mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 22:48:13 +08:00
Add donation callouts in-app and on the site
This commit is contained in:
@@ -490,6 +490,13 @@ impl EditorHandle {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Visit the given URL
|
||||
#[wasm_bindgen(js_name = visitUrl)]
|
||||
pub fn visit_url(&self, url: String) {
|
||||
let message = FrontendMessage::TriggerVisitLink { url };
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
/// Paste layers from a serialized json representation
|
||||
#[wasm_bindgen(js_name = pasteSerializedData)]
|
||||
pub fn paste_serialized_data(&self, data: String) {
|
||||
|
||||
Reference in New Issue
Block a user