mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
fix: setup flow for == (#867)
This commit is contained in:
parent
eee01b2ae0
commit
1cb8000c7f
3 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 %>;
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue