Frederic was a healthy scratch for a 3-2 loss to the Ottawa Senators on Thursday.
"I just wanted to play hard, try to help the team, play disciplined, and obviously try to get a win. Anytime we're winning, that's good," Frederic said. "[Smith] made a good play to put it to the net. When our line's successful, that's what we do. I just got a good bounce so I could put it in the net."
Heinen scored for the third straight game at 5:38 of the second period with a wrist shot from the high slot off a drop pass from Teddy Blueger for the 2-1 final.
"It's really tough (to play from behind)," Blueger said. "They're a good defensive team, you know, very structured, so it's tough to score on them. Obviously when you're chasing the game, I think they're a little more diligent defensively, so we didn't help ourselves."
Swayman made nine saves in the third period.
"It's special. It's a really important win for us, especially as of late, in the fashion that we did it, making the small plays and the simple plays," Swayman said. "Everything was just crisp and on point for us tonight. Just super excited to finally clinch, and to do it at home is the cherry on top."