Since $f$ is continuous, $f(x)\to f(0)$ as $x\to 0$. This implies that for every $\varepsilon>0$, no matter how small, if $n$ is big enough, then $f\left(\dfrac u n\right)$ is between the points $f(0)\pm \varepsilon$.
$$
\begin{align}
& \int_0^1 \frac{\sin nt}{t} f(t) \, dt = \int_0^1 \frac{\sin nt}{nt} f\left(\frac{nt}{n}\right) \Big( n\,dt\Big) \\[10pt]
& = \int_{t=0}^{t=1} \frac{\sin u}{u} f\left(\frac{u}{n}\right) \, du = \int_{u=1}^{u=n} \frac{\sin u}{u} f\left(\frac{u}{n}\right) \, du\tag{1}
\end{align}
$$
If all of the values of $g(u)$ are between $f(0)\pm\varepsilon$ then
$$
\int_0^n \frac{\sin u}{u} g(u)\,du\text{ is between }\int_0^n f\left(\frac{\sin u}{u}\right) (f(0)\pm\varepsilon)\, du =(1\pm\varepsilon)\int_0^n\frac{\sin u}{u}\,du.\tag{2}
$$
We haven't yet established that the last expression in $(1)$ approaches a limit as $n\to\infty$, but it has a liminf and a limsup. The last integral in $(2)$ does have a limit $L$ as $n\to\infty$. What we've done entails that the liminf and limsup of the last expression in $(1)$ are between $(1\pm\varepsilon)L$. That liminf and that limsup are quantities that don't depend on $n$. And, for every $\varepsilon$, no matter how small, that liminf and that limsup must be between $(1\pm\varepsilon)L$. That can happen only if the liminf and the limsup are both equal to $L$.