fix: setup flow for == (#867)

This commit is contained in:
Echo 2026-01-27 03:05:59 -05:00 committed by GitHub
parent eee01b2ae0
commit 1cb8000c7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -310,7 +310,7 @@
function up2(project) {
const preview = document.getElementById("project-badge-preview");
const url = document.getElementById("project-badge-url");
const baseUrl = <%= (@work_time_stats_url.gsub(@projects.first || 'example', '')).to_json %>;
const baseUrl = <%== (@work_time_stats_url.gsub(@projects.first || 'example', '')).to_json %>;
const newUrl = baseUrl + project;
preview.src = newUrl;
url.textContent = newUrl;

View file

@ -230,9 +230,9 @@
}
function check() {
fetch(<%= api_v1_my_heartbeats_most_recent_path(source_type: "test_entry").to_json %>, {
fetch(<%== api_v1_my_heartbeats_most_recent_path(source_type: "test_entry").to_json %>, {
headers: {
Authorization: "Bearer " + <%= @current_user_api_key.to_json %>,
Authorization: "Bearer " + <%== @current_user_api_key.to_json %>,
},
})
.then((response) => response.json())
@ -272,7 +272,7 @@
check();
window.skipToNext = function () {
window.location.href = <%= my_wakatime_setup_step_2_path.to_json %>;
window.location.href = <%== my_wakatime_setup_step_2_path.to_json %>;
};
});

View file

@ -308,9 +308,9 @@ git clone https://github.com/wakatime/vim-wakatime.git</code></pre>
}
function check() {
fetch(<%= api_v1_my_heartbeats_most_recent_path.to_json %>, {
fetch(<%== api_v1_my_heartbeats_most_recent_path.to_json %>, {
headers: {
Authorization: "Bearer " + <%= @current_user_api_key.to_json %>,
Authorization: "Bearer " + <%== @current_user_api_key.to_json %>,
},
})
.then((response) => response.json())
@ -350,7 +350,7 @@ git clone https://github.com/wakatime/vim-wakatime.git</code></pre>
check();
window.skipToNext = function () {
window.location.href = <%= my_wakatime_setup_step_4_path.to_json %>;
window.location.href = <%== my_wakatime_setup_step_4_path.to_json %>;
};
});
</script>