Skip to content

Commit

Permalink
refactor: remove unnecessary hashes around raw str (#10273)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Jul 15, 2024
1 parent 9f0a5fc commit 26f2e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ fn main() {
}

fn define_permissions(out_dir: &Path) {
let license_header = r#"# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
let license_header = r"# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
"#;
";

for (plugin, commands) in PLUGINS {
let permissions_out_dir = out_dir.join("permissions").join(plugin);
Expand Down
4 changes: 2 additions & 2 deletions core/tauri/src/manager/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl<R: Runtime> WebviewManager<R> {
}
webview_attributes = webview_attributes
.initialization_script(
r#"
r"
Object.defineProperty(window, 'isTauri', {
value: true,
});
Expand All @@ -177,7 +177,7 @@ impl<R: Runtime> WebviewManager<R> {
}
})
}
"#,
",
)
.initialization_script(&self.invoke_initialization_script)
.initialization_script(&format!(
Expand Down

0 comments on commit 26f2e19

Please sign in to comment.